Skip to content

[BUG] TypeError: Cannot read properties of undefined (reading 'includes') #13652

Closed

Description

Context:

  • Playwright Version: 1.21.1
  • Operating System: Linux
  • Node.js version: 17
  • Browser: Electron
  • Extra:

Code Snippet

Describe the bug

locator.hover: TypeError: Cannot read properties of undefined (reading 'includes')
    at parseSelectorString (<anonymous>:1291:17)
    at parseSelector (<anonymous>:1197:18)
    at InjectedScript.parseSelector (<anonymous>:3790:20)
    at makeStrict (<anonymous>:3450:43)
    at cssFallback (<anonymous>:3494:54)
    at generateSelector (<anonymous>:3303:40)
    at InjectedScript.generateSelector (<anonymous>:3797:83)
    at <anonymous>:4443:22
    at Array.map (<anonymous>)
    at InjectedScript.strictModeViolationError (<anonymous>:4441:63)

Repository to reproduce the issue
https://github.com/SimonSiefke/playwright-bug-13652

Steps:

Activity

  1. yury-s commented on Apr 20, 2022

    @yury-s
    Member

    Can you share example where it occurs?

  2. SimonSiefke commented on Apr 22, 2022

    @SimonSiefke
    ContributorAuthor

    I've now added a repository to reproduce the issue (SimonSiefke/playwright-bug-13652)

  3. yury-s commented on Apr 22, 2022

    @yury-s
    Member

    I've now added a repository to reproduce the issue (SimonSiefke/playwright-bug-13652)

    Tried to run it but getting this error.

  4. SimonSiefke commented on Apr 22, 2022

    @SimonSiefke
    ContributorAuthor

    Apologies, it was my mistake, vscode package.json path is different on macos. Please check again :)

  5. yury-s commented on Apr 22, 2022

    @yury-s
    Member

    Thank you, I can reproduce it now.

  6. yury-s commented on Apr 22, 2022

    @yury-s
    Member

    The selector that causes the problem is html body .enable-motion div div div div:nth-child(2) div div:nth-child(3) div .monaco-split-view2.horizontal div:nth-child(2) div div:nth-child(2) [id="workbench\.parts\.sidebar"] .content [id="workbench\.view\.explorer"] .monaco-pane-view .monaco-split-view2 div:nth-child(2) div:nth-child(3)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions