Home > Enterprise >  Access geolocation with Selenium WebDriver, Chrome, and macOS
Access geolocation with Selenium WebDriver, Chrome, and macOS

Time:10-07

I want to run a test to access the geolocation coordinates with Selenium WebDriver (version 4.0.0-rc-1):

enter image description here

Does anybody know if it is possible to achieve it?

CodePudding user response:

I found the solution. I post here just in case it helps someone. In the macOS preferences, we need to enable location services for Chrome (System Preferences -> Security & Privacy -> Location Services), as follows:

enter image description here

After that, the test can access the location coordinates.

  • Related