Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
chore: wire sourcesChanged event to the ProtocolHandler (#18044)
Max Schmitt693ed9b19e03
diff --git a/packages/playwright-core/src/cli/driver.ts b/packages/playwright-core/src/cli/driver.tsindex 3733a7f784..f19c9ba2c1 100644--- a/packages/playwright-core/src/cli/driver.ts+++ b/packages/playwright-core/src/cli/driver.ts@@ -93,6 +93,9 @@ class ProtocolHandler {this._controller.on(DebugController.Events.InspectRequested, ({ selector, locators }) => {process.send!({ method: 'inspectRequested', params: { selector, locators } });});+ this._controller.on(DebugController.Events.SourcesChanged, sources => {+ process.send!({ method: 'sourcesChanged', params: { sources } });+ });}async resetForReuse() {