privatenumber / playwright-start Goto Github PK
View Code? Open in Web Editor NEWStart a long-running Playwright browser server via CLI
Start a long-running Playwright browser server via CLI
npx playwright-start
failed, it saids:
/Users/xxx/.npm/_npx/7d976fb7a2568a32/node_modules/playwright-start/dist/playwright-start.js:49
[parsed.options.headless] = parsed.options.headless;
^
TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
at /Users/xxx/.npm/_npx/7d976fb7a2568a32/node_modules/playwright-start/dist/playwright-start.js:49:31
at Object.<anonymous> (/Users/xxx/.npm/_npx/7d976fb7a2568a32/node_modules/playwright-start/dist/playwright-start.js:64:3)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Module._load (node:internal/modules/cjs/loader:827:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/Users/xxx/.npm/_npx/7d976fb7a2568a32/node_modules/playwright-start/bin/playwright-start.js:3:1)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
Node.js v18.0.0
npx playwright-start
playwright-start
version:โ ~ npx playwright-start --version
start-browser/1.1.0 darwin-x64 node-v18.0.0
Darwin xxx-MB0 21.5.0 Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:22 PDT 2022; root:xnu-8020.121.3~4/RELEASE_X86_64 x86_64
Node version: v18.0.0
Package manager (npm/yarn/pnpm) and version: npx 8.6.0
I was looking for something that would start a playwright server from the CLI that I could connect to via python. playwright-start looked good except it doesn't print out the websocket address.
It would be a nice addition if this script allowed to specify the wspath and port and also printed them to stdout.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.