Skip to content

[BUG] PW 1.9.2 backwards incompatible text selector change #5943

Closed
@mkorpela

Description

@mkorpela

Context:

text selector with quotes did a change to be case-sensitive. Freeking day debugging this for my dear colleague but he managed to debug that it was because of 1.9.2 lost ability to detect text over multiple html elements.

Like: text="Work" figuring this out with 1.9.1 and not with 1.9.2

<span class="js-animated-title">
<span class="animate-up js">Wo</span>
<span class="animate-down js">rk</span>
</span>
  • Playwright Version: 1.9.2
  • Operating System: Linux and Mac .. I'm not starting your masters system so lets leave this here.
  • Node.js version: 14.15.5
  • Browser: Chromium at least

Code Snippet

I put this to our issues too MarketSquare/robotframework-browser#859
I'll pseudocode it here:

const { chromium } = require('playwright');
(async () => {
  const browser = chromium.launch();
  const page = browser.newPage();
  await page.goto("https://www.reaktor.com");
  await page.click('text="Work"');
})();

Works with 1.9.1 and not with 1.9.2

Metadata

Metadata

Assignees

No one assigned

    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