

": '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. Many a times, you would like to use Chrome as a portable or standalone app without first installing it. 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. Var driver = new ChromeDriver(service, options) 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.
#Google chrome portable standalone how to#
Currently, I know how to do one or the other, but not both. Download: Google Chrome MSI Installers for Windows (automatic update) View: Chrome Website v112. 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. Download: Google Chrome Offline Installer 32-bit 88.2 MB. What I am trying to accomplish is, I think, relatively simple.
