usil / seleniumjs4all

1 stars 0 forks source link

Don't work on windows: WebDriverError: unknown error: cannot find Chrome binary #14

Closed jrichardsz closed 1 year ago

jrichardsz commented 1 year ago

https://stackoverflow.com/questions/73628163/handling-selenium-webdrivers-on-node-js-when-sigint-is-recieved

jrichardsz commented 1 year ago
{
    "arguments": [
      "--log-level=1",
      "--no-sandbox",
      "--disable-gpu",
      "--disable-dev-shm-usage",
      "--headless",
      "--window-size=2200,1600"
    ],

    "options": {
        "excludeSwitches" :  "...",
        "setChromeBinaryPath" : "..."
    }
  }

https://github.com/usil/seleniumjs4all/blob/fix-CustomEnviroment/src/browsers/browserDriver.js#L26

chromeOptions[methodName](methodParam);
jrichardsz commented 1 year ago

add a link with all the available options

jrichardsz commented 1 year ago

https://stackoverflow.com/questions/912596/how-to-turn-a-string-into-a-javascript-function-call

iSkyNavy commented 1 year ago

This bug was solved in the commit https://github.com/usil/seleniumjs4all/commit/e27fb2a70aec285744cb122b6d91b6d6881b646d The list of chrome options is image image