I am trying to run Selenium tests. I am using C #. I have problems with all the drivers 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)) { ...
It looks like the chromedriver.exe file is detected, but it can find the Chrome binary. I set the path to chrome.exe explicitly after an automatic search. I even tried it with "chrome.exe" at the end. I always get the same result:
Could not find Chrome fraction:
C: \ Users \ Willem \ AppData \ Local \ Google \ Chrome \ Application
Firefox
new OpenQA.Selenium.Firefox.FirefoxDriver();
I also tried it with a set of profiles:
FirefoxProfile profile = new FirefoxProfile(@"E:\...\FirefoxProfile"); new OpenQA.Selenium.Firefox.FirefoxDriver();
The error I am getting is:
Unable to communicate with blocking port 7054 for 45,000 ms
IE
var ieOptions = new InternetExplorerOptions(); ieOptions.IntroduceInstabilityByIgnoringProtectedModeSettings = true; new InternetExplorerDriver(@"C:\Program Files (x86)\IEDriver\", ieOptions);
The driver folder is also set to PATH.
The error I am getting is:
No response from server for url http:
Is there something I am missing? I would be glad if any of them worked.
thanks
source share