I want to run a test to access the geolocation coordinates with Selenium WebDriver (version 4.0.0-rc-1):
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:
After that, the test can access the location coordinates.