Skip to content

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

@frezot

Description

@frezot

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
    ============================================================

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions