Skip to content

Ignoring cancel characters with playwright on string locators #3987

@rorymullan

Description

@rorymullan

What are you trying to achieve?

I.see('This isn't a string')

results in an error:

locator.isVisible: Unexpected token "t" while parsing selector ":has-text('This isn't a string') >> nth=0"
11:26:00 at Playwright.waitForText (node_modules/codeceptjs/lib/helper/Playwright.js:2584:79)

The cancel character in being removed when passing through to playwright.

What do you get instead?

Pinning back to 3.5.6 and the tests again pass.

Provide console output if related. Use --verbose mode for more details.

# paste output here

Provide test source code if related

// paste test

Details

  • CodeceptJS version: 3.5.7
  • NodeJS Version: 18
  • Operating System: Linux
  • Playwright: ^1.x.x
  • Configuration file:
# paste config here

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions