eRKAZOID
eRKAZOID

Reputation: 55

Run selenium in default browser?

Is there a possibility to run selenium.chrome in the default chrome browser (the none chrome automation version). Currently, I'm having a problem where the site wants to access does not work well with the browser that selenium opens. But in my default Chrome browser, the same problem is not shown. I want to be able to open my "own" chrome browser and use selenium with it.

Upvotes: 2

Views: 1149

Answers (1)

Daniel Manta
Daniel Manta

Reputation: 6718

You can specify the path to the Chrome browser you want to run.

var options = new ChromeOptions()
{
    BinaryLocation = @"C:\Program Files (x86)\Google\Chrome\Application\Chrome.exe"
};
var driver = new ChromeDriver(Environment.CurrentDirectory, options);

Upvotes: 2

Related Questions