Playwright · Middle · Question 43 of 75

How do you test a location-based feature?

Show the answer

Correct answer: Set geolocation and grant the geolocation permission

Explanation

Context options like geolocation, locale, timezoneId and permissions emulate the user's environment.

Further reading

Problem with a question

Playwright · Middle · question 43

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