Resolve Selenium error - Chrome opening Settings tab to reset settings on launch

Recently I was creating a new Java with Selenium project on a new windows system. I was trying to  use ChromeDriver for this project. 

I wrote the hello world sample code by lifting it off from the official selenium website. After typing all the codes and doing the project setup, when I was ready to launch, I hit "Run" button on my Eclipse IDE, and voila the browser launched!

But soon my fantasy turned to dust when I saw that instead of opening the URL on the browser, Chrome window was displaying me a weird error like the one shown below:

Here, the Chrome window was displaying a prompt to reset the settings. Even when i was clicking on Reset settings and trying to proceed further, nothing was happening.

Due to this. I was unable to launch the URL which was mentioned in the Selenium Project codes.

Thankfully I solved the problem using the below steps. I was using Windows 8.1 on my system, so these steps are applicable only for Windows-based systems only.

  • I opened Run window by pressing "Windows + R" button.
  • Then I typed "regedit.exe" in the run window to open Registry Editor. 
  • In Registry Editor, I navigated to the following path as you may see in the below screenshot:  HKEY_CURRENT_USER\Software\Google\Chrome\TriggeredReset

  • Here, there was a folder titled "TriggeredReset" in the left sidebars, I right-clicked on the folder and clicked on "Delete".
  • Post this, I closed Registry Editor, closed all instances of Chrome Browser, and restarted my Eclipse IDE. 
  • Now I re-ran the project and voila, the project started working fine now.

If you are also facing a similar issue, then you can try these steps and let me know if it worked for you.

Happy coding!

Post a Comment