Playwright · Middle · Question 37 of 75

What does locator.waitFor() do?

Show the answer

Correct answer: Waits until the element reaches a state like visible

Explanation

It's useful before reading values with methods that don't wait, though an assertion is usually clearer.

Further reading

Problem with a question

Playwright · Middle · question 37

Test yourself

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

Take this quiz