I'm trying to get Selenium tests running. I'm using C#. I'm having a problem with every driver I tried.
Chrome
var options = new OpenQA.Selenium.Chrome.ChromeOptions();
options.BinaryLocation = @"C:\Users\Vilem\AppData\Local\Google\Chrome\Application\";
using (IWebDriver driver = new OpenQA.Selenium.Chrome.ChromeDriver(options))
{
...
Seems like chromedriver.exe was found but it could find the Chrome binary. I set up the path to chrome.exe explicitly after automatic search failed. I even tried it with "chrome.exe" at the end. I always get the same result:
Could not find Chrome binary at:
C:\Users\Vilem\AppData\Local\Google\Chrome\Application
Firefox
new OpenQA.Selenium.Firefox.FirefoxDriver();
I also tried it with a profile set:
FirefoxProfile profile = new FirefoxProfile(@"E:\...\FirefoxProfile");
new OpenQA.Selenium.Firefox.FirefoxDriver();
Error I'm getting:
Unable to bind to locking port 7054 within 45000 ms
IE
var ieOptions = new InternetExplorerOptions();
ieOptions.IntroduceInstabilityByIgnoringProtectedModeSettings = true;
new InternetExplorerDriver(@"C:\Program Files (x86)\IEDriver\", ieOptions);
The folder with the driver is also set in PATH.
The error I'm getting:
No response from server for url http://localhost:6955/session
Is there something I'm missing? I would be happy if any of them got working.
Thanks