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
doc(troubleshooting): add note about lack of node 8 support (#623)
Joel Einbinderff877014cd2f
diff --git a/docs/troubleshooting.md b/docs/troubleshooting.mdindex 07b303c2a8..05747c689b 100644--- a/docs/troubleshooting.md+++ b/docs/troubleshooting.md@@ -12,6 +12,7 @@* [Running Playwright in Docker](#running-playwright-in-docker)- [Tips](#tips)- [Code Transpilation Issues](#code-transpilation-issues)+- [ReferenceError: URL is not defined](#referenceerror-url-is-not-defined)<!-- GEN:stop -->## Chromium@@ -288,6 +289,10 @@ await page.evaluate(`(async() => {})()`);```+## ReferenceError: URL is not defined++Playwright requires node 10 or higher. Node 8 is not supported, and will cause you to recieve this error.+# Please file an issuePlaywright is a new project, and we are watching the issues very closely. As we solve common issues, this document will grow to include the common answers.diff --git a/utils/doclint/check_public_api/JSBuilder.js b/utils/doclint/check_public_api/JSBuilder.jsindex d57b056638..8a88dd2215 100644--- a/utils/doclint/check_public_api/JSBuilder.js+++ b/utils/doclint/check_public_api/JSBuilder.js@@ -30,7 +30,7 @@ function checkSources(sources, externalDependencies) {const classEvents = new Map();const eventsSources = sources.filter(source => source.name().startsWith('events.ts'));for (const eventsSource of eventsSources) {- const {Events} = require(eventsSource.filePath().endsWith('.js') ? eventsSource.filePath() : eventsSource.filePath().replace('/src/', '/lib/').replace('.ts', '.js'));+ const {Events} = require(eventsSource.filePath().endsWith('.js') ? eventsSource.filePath() : eventsSource.filePath().replace(/\bsrc\b/, 'lib').replace('.ts', '.js'));for (const [className, events] of Object.entries(Events))classEvents.set(className, Array.from(Object.values(events)).filter(e => typeof e === 'string').map(e => Documentation.Member.createEvent(e)));}