Giter VIP home page Giter VIP logo

Comments (5)

LVMuser avatar LVMuser commented on June 2, 2024

Didn't mention version, broken on 1.7.0. Dropped back to 1.6.2 and issue not present

from playwright-cli.

jsntrmn avatar jsntrmn commented on June 2, 2024

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.

rubentorresbonet avatar rubentorresbonet commented on June 2, 2024

I also have this issue. Any workaround?

from playwright-cli.

FokkeZB avatar FokkeZB commented on June 2, 2024

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.

dgozman avatar dgozman commented on June 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.