Playwright · Middle · Question 46 of 75

How do you drag an item onto a drop zone?

Show the answer

Correct answer: await item.dragTo(dropZone)

Explanation

dragTo does the mouse down, move and up. Libraries with custom logic may need manual page.mouse steps.

Further reading

Problem with a question

Playwright · Middle · question 46

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