

": 'The HTTP request to the remote WebDriver server for URL timed out after 60 seconds.' options.BinaryLocation = have tried using the chromium flag for new window (- new-window + URL) and using the app flag (-app +URL) but both fail to run the code that should go to google and input "Polar Bears" in the search box. Rather, the URL will say simply "data:," and the code will timeout in visual studio with this message: Automate custom Google Search Submissionĭriver.FindElement(By.Name("q")).SendKeys("Polar Bears") īut, when I use the custom chrome location binary option given below, than it will open Google Chrome Portable, but it won't go to. For this, you can use automatic installation services. Chrome can also be downloaded and installed automatically (silent installation). Var driver = new ChromeDriver(service, options) Download Google Chrome Automatic Installer. Assign driver variable to Chrome Driver Service.SuppressInitialDiagnosticInformation = true Start Chrome Driver Service from Custom LocationĬhromeDriverService service = the CMD prompt window to automatically close and suppress diagnostic information

The following code will open Google Chrome from it's standard installation location (C:Program Files (x86) and input the text for "Polar Bears" in the Google Search box. Currently, I know how to do one or the other, but not both. I am trying to write code that will use a Google Chrome Portable executable and also execute selenium powered web-page element finding and selecting using the latest version of the chrome driver. What I am trying to accomplish is, I think, relatively simple.
