Playwright · Junior · Question 31 of 75

Which method moves the mouse over an element to show its tooltip?

Show the answer

Correct answer: hover()

Explanation

hover() waits for the element to be actionable and moves the mouse over it, triggering hover styles and mouseenter handlers.

Further reading

Problem with a question

Playwright · Junior · question 31

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