Playwright · Junior · Question 67 of 75

What does toBeVisible() consider visible?

Show the answer

Correct answer: A non-empty box and not visibility: hidden

Explanation

Elements with zero size, display: none or visibility: hidden are not visible. Being scrolled out of view still counts as visible.

Further reading

Problem with a question

Playwright · Junior · question 67

Test yourself

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

Take this quiz