Hi I have tried to use WebUI.alert / dismiss to handle the geolocation alert but the error message return “alert not found”. The alert is actually there.
I have googled and fond some other solutions, such as:
Use selenium library, Alert alert = driver.switchTo().alert();
The best way to handle this (assuming that it is indeed a browser-level notification) is withe Desired Capabilities. I’ve written a guide on how to determine which one to add: