Skip to content

[BUG] has_text and cyrillic symbols error #1434

@AnastasiiaPetrochenkova

Description

Context:

  • Playwright Version: 1.23.0
  • Operating System: Mac
  • Python version: 3.8
  • Browser: Chromium

We have html:
<div class="_1TyNu" data-testid="SPECIALIZATION_SPECIALTIES_ITEM"><div color="black" class="Hqhed _1et8a _2Xtfq">Педиатр</div></div>

Our code:
page.locator("//div").filter(has_text="Педиатр").click()

Error:
Снимок экрана 2022-07-14 в 12 31 14

When we fill "has_text" with english letters - driver works with no problem.

When driver can't find english text, error don't have unicode text:

patient_choose_clinic_modal.clinic_name.filter(has_text="QA DepartmentA").click()

Снимок экрана 2022-07-14 в 12 44 41

Metadata

Metadata

Assignees

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