Comments (5)
I am seeing this on macOS as well. The problem here is Yarn not installing the
browsers; while npm install
does.
from playwright.
For mac OS, running node node_modules/playwright/install.js
installed the browsers and resolved my issue. I couldn't run npm because I was in yarn exclusive environment.
from playwright.
Using npm install
results in a download of chromium, firefox, webkit, but still errors out on execution with:
$node main.js
(node:1789) UnhandledPromiseRejectionWarning: Error: Failed to launch browser!
/home/-/playwright/node_modules/playwright-core/.local-chromium/linux-733125/chrome-linux/chrome: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory
TROUBLESHOOTING: https://github.com/Microsoft/playwright/blob/master/docs/troubleshooting.md
at onClose (/home/-/playwright/node_modules/playwright-core/lib/server/processLauncher.js:135:20)
at Interface.<anonymous> (/home/-/playwright/node_modules/playwright-core/lib/server/processLauncher.js:128:65)
at Interface.emit (events.js:215:7)
at Interface.close (readline.js:403:8)
at Socket.onend (readline.js:180:10)
at Socket.emit (events.js:215:7)
at endReadableNT (_stream_readable.js:1184:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
-- ASYNC --
at CRPlaywright.<anonymous> (/home/-/playwright/node_modules/playwright-core/lib/helper.js:54:23)
at CRPlaywright.launch (/home/-/playwright/node_modules/playwright-core/lib/server/crPlaywright.js:64:35)
at CRPlaywright.<anonymous> (/home/-/playwright/node_modules/playwright-core/lib/helper.js:55:31)
at /home/-/playwright/main.js:5:38
at Object.<anonymous> (/home/-/playwright/main.js:10:3)
at Module._compile (internal/modules/cjs/loader.js:959:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
at Module.load (internal/modules/cjs/loader.js:815:32)
at Function.Module._load (internal/modules/cjs/loader.js:727:14)
at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10)
-- ASYNC --
at CRPlaywright.<anonymous> (/home/-/playwright/node_modules/playwright-core/lib/helper.js:54:23)
at /home/-/playwright/main.js:5:38
at Object.<anonymous> (/home/-/playwright/main.js:10:3)
at Module._compile (internal/modules/cjs/loader.js:959:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
at Module.load (internal/modules/cjs/loader.js:815:32)
at Function.Module._load (internal/modules/cjs/loader.js:727:14)
at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10)
at internal/main/run_main_module.js:17:11
(node:1789) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:1789) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
from playwright.
Possibly a duplicate of #581
from playwright.
Folding this into #581 and #1085
from playwright.
Related Issues (20)
- is it possible to hide skipped tests altogether from HTML report?
- [Feature]: Skip remaining tests after failure of first test HOT 1
- [Feature]: Generate trace even for codegen use HOT 2
- [Bug] shutdown workers before calling Reporter.onEnd
- [Feature]: Make "respectGitIgnore" a configurable parameter HOT 2
- [Bug]: Not possible to specify custom test-id on codegen HOT 1
- [Feature]: Have an option to launch UI mode, Inspector or TraceViewer in different browsers. HOT 1
- [Bug]: HOT 1
- [Bug]: Playwright Firefox does not catch all requests / responses
- [Bug]: Redirected from another domain to my domain then perform click event page crashed!! HOT 1
- [Bug]: Rollup failed to resolve import "/playwright/index.ts" from "/myrepo/playwright/index.html" HOT 2
- Logout verification for parallel tests with login thru global setup with single user
- [Bug]: Chromium browsers does not respect locale option (no use of Accept-Language header) for WebSocket connections HOT 1
- [Bug]: [GUI] Locator Code Generator improper escaping and inverted frame order HOT 1
- [Bug]: beforeEach and afterEach hooks not running in sync for tests that are skipped at runtime HOT 2
- [Bug]: After disabling BlockInsecurePrivateNetworkRequests in chrome://flags/, the function to upload attachments becomes non-functional.
- [Feature]: Allow to pass components and functions to hooks config HOT 3
- [Bug]: Parallel test process execution causing race condition and empty babel transpiled file read from disk cache HOT 5
- I am getting TypeError: Cannot read properties of undefined (reading 'waitForEvent') fo handling multiple windows in playwright HOT 1
- How to get the selected options label text for a multi-select dropdown? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from playwright.