While testing a website on Chrome using selenium webdriver
(chromedriver
) with ruby
and selenium grid 2
, I manually clicked on Allow
to track my location.
Since then every new run starts off with the Chrome browser tracking my location and not asking for permission anymore.
In my understanding that should not happen, as Selenium should create a new profile and not remember any user interactions in the previous run.
I have also tried to open the Chrome Browser as an admin (manually) and change the settings to forget any permissions set for location services for the site being tested. But that has not helped either.
I have also tried to restart the grid but that has not helped either.
Does anyone know how do I make the browser forget my permission?
UPDATE
Code to start the driver
@driver = Selenium::WebDriver.for(:remote, :url => @sel_grid_url, :desired_capabilities => @browser)