Playwright · Senior · Question 38 of 77

How should locators be chosen in an app with several languages?

Show the answer

Correct answer: Roles with names from translations, or test IDs where needed

Explanation

Reading names from the same translation files or running each locale as a project keeps tests correct for every language.

Further reading

Problem with a question

Playwright · Senior · question 38

Test yourself

Take the Playwright · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz