0

I'm using Selenium and Opera GX is the latest version. When I try to open Opera GX browser with Selenium, I get an exception.

System.InvalidOperationException: 'session not created: This version of ChromeDriver only supports Chrome version 114 Current browser version is 113.0.5672.127 with binary path C:\Users\Pc\AppData\Local\Programs\Opera GX\opera.exe (SessionNotCreated)'

The code I tried:

var options = new ChromeOptions();
options.AddArgument("remote-debugging-port=9222");
options.BinaryLocation = "C:\\Users\\Pc\\AppData\\Local\\Programs\\Opera GX\\opera.exe";

IWebDriver driver = new ChromeDriver(options);
driver.Navigate().GoToUrl("https://www.google.com"); 
Dmitriy Popov
  • 2,150
  • 3
  • 25
  • 34
Psiko
  • 1
  • 1

1 Answers1

0

This error message...

Exception: System.InvalidOperationException: 'session not created: This version of ChromeDriver only supports Chrome version 114 Current browser version is 113.0.5672.127 with binary path C:\Users\Pc\AppData\Local\Programs\Opera GX\opera.exe (SessionNotCreated)

...implies that the browser version you are using internally uses Chrome browsing engine of v113.x. Hence having compatibility issues.


Solution

Ugrade your Opera browser version to the latest version which uses the Chrome browsing engine of v114.x


References

You can find a couple of relevant detailed discussions in:

undetected Selenium
  • 183,867
  • 41
  • 278
  • 352