Comments (5)
Didn't mention version, broken on 1.7.0
. Dropped back to 1.6.2
and issue not present
from playwright-cli.
I can confirm the same issue exists on Firefox and WebKit, too.
From CLI:
$ npx playwright-cli --version
Version 0.171.0
$ npx playwright-cli ff wikipedia.org
$ npx playwright-cli wk wikipedia.org
In developer console of Firefox:
playwright.$('text=English')
Uncaught TypeError: this._injectedScript.engines is undefined
_checkSelector debugger eval code line 1987 > eval:323
querySelector debugger eval code line 1987 > eval:331
$ debugger eval code line 1987 > eval:315
<anonymous> debugger eval code:1
getEvalResult resource://devtools/server/actors/webconsole/eval-with-debugger.js:243
evalWithDebugger resource://devtools/server/actors/webconsole/eval-with-debugger.js:167
evaluateJS resource://devtools/server/actors/webconsole.js:1113
evaluateJSAsync resource://devtools/server/actors/webconsole.js:1007
makeInfallible resource://devtools/shared/ThreadSafeDevToolsUtils.js:103
In developer console of WebKit:
playwright.$('text=English')
TypeError: undefined is not an object (evaluating 'this._injectedScript.engines.has')
_checkSelector
querySelector
Global Code
evaluateWithScopeExtension
(anonymous function)
_wrapCall
from playwright-cli.
I also have this issue. Any workaround?
from playwright-cli.
I get yet another:
playwright.$('.auth-form >> text=Log in');
VM53:323 Uncaught TypeError: Cannot read property 'has' of undefined
at ConsoleAPI._checkSelector (eval at extend (login:1), <anonymous>:323:47)
at ConsoleAPI.querySelector (eval at extend (login:1), <anonymous>:331:14)
at Object.$ (eval at extend (login:1), <anonymous>:315:35)
at <anonymous>:1:12
from playwright-cli.
This works for me with npx playwright
version 1.8.0. This seems like a regression in [email protected]
, please upgrade to get it fixed. Note that playwright-cli
has been merged into playwright, so use npx playwright
instead. Sorry for the inconvenience.
from playwright-cli.
Related Issues (20)
- Ability to execute helper methods to change page state during codegen HOT 1
- Error: Cannot find module '[...]/playwright/install.js' - NPX on a Github Codespace HOT 5
- [Bug] Page fill is adding extra line breaks HOT 1
- Add flag and environment variable to specify executablePath(s) for lightweight Alpine Linux container HOT 5
- Download button from webpage clicked but download was not executed or download event didn't happen HOT 3
- [Regression] Hovering on elements shows a stretched screenshot as overlay
- [BUG] playwright-cli does not work with NPX on Node.js 14 and 12 HOT 1
- 'npx playwright-cli open example.com' failed HOT 2
- Error running codegen
- [Bug] WebKit/iPhone viewport size on Windows HOT 2
- Codegen generates wrong selector for a box uncheck
- [Request] Allow installation of playwright-cli with single browser packages (playwright-chromium, ...) HOT 2
- Need help to handle Iframe HOT 1
- Feat: introduce --save-state and --load-state options HOT 1
- [BUG] Codegen closes after newpage in browser HOT 2
- Codegen behaves inconsistently across browsers HOT 1
- How to set ignoreHTTPSErrors on the underlying browser context? HOT 1
- How to set ignoreHTTPSErrors on the underlying browser context? HOT 2
- Feature Request: Record network requests and save them as ready-to-use mocks HOT 3
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-cli.