Skip to content

[REGRESSION]: Selector text="" works differ for element with nested elements since 1.9 #5583

Closed

Description

Context:

  • GOOD Playwright Version: 1.8.1
  • BAD Playwright Version: 1.9
  • Operating System: Linux, Mac

Code Snippet

https://github.com/frezot/pw-1.9-bug

Describe the bug

Page has element

<div>Illon M.<span>*9025 SOME BANK</span></div>

in 1.8.1 for get this div by text

await page.waitForSelector('text="Illon M."')

in 1.9

    page.waitForSelector: Timeout 1000ms exceeded.
    =========================== logs ===========================
    waiting for selector "text="Illon M."" to be visible
    ============================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions