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: improve error message (#2222)
Yury Semikhatskye081ba7256a2
diff --git a/src/browserContext.ts b/src/browserContext.tsindex 1446459969..d2d69223b5 100644--- a/src/browserContext.ts+++ b/src/browserContext.ts@@ -172,7 +172,7 @@ export abstract class BrowserContextBase extends ExtendedEventEmitter implementsawait pages[0].waitForLoadState();if (pages.length !== 1 || pages[0].url() !== 'about:blank') {await this.close().catch(e => null);- throw new Error('Arguments can not specify page to be opened');+ throw new Error(`Arguments can not specify page to be opened (first url is ${pages[0].url()})`);}}}