Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chromedriver.exe installed by this module is not found by check in selenium-webdriver on Windows #90

Closed
amb26 opened this issue Feb 7, 2017 · 5 comments

Comments

@amb26
Copy link

amb26 commented Feb 7, 2017

The check in selenium-webdriver on the win32 platform is that the executable chromedriver.exe is on the path - https://github.com/SeleniumHQ/selenium/blob/master/javascript/node/selenium-webdriver/chrome.js#L189 - this module doesn't achieve this - instead what is put on the path is the driver chromedriver.cmd and a shell script chromedriver. Instead, chromedriver.exe is installed at the deeply nested path $node_modules\chromedriver\lib\chromedriver where it is very unlikely to be on the system path. This makes the node-chromedriver unusable for one of its main purposes, to automatically install chromedriver in such a way that the selenium-webdriver wrapper picks it up.

@giggio
Copy link
Owner

giggio commented Feb 13, 2017

You should be able to get the path to the binary using the exported path property, and then configure selenium. I guess selenium is by far the most common use case for Chromedriver, I myself use it often, and it is not at all unusable, on the contrary.

@quantuminformation
Copy link

I don't see the .exe anywhere on the download.

image

I'm using it with nightwatch and it works fine on a mac:

  "selenium" : {
    "start_process" : true,
    "server_path" : "./node_modules/selenium-server-standalone-jar/jar/selenium-server-standalone-3.7.1.jar",
    "log_path" : "",
    "host" : "127.0.0.1",
    "port" : 4444,
    "cli_args" : {
      "webdriver.chrome.driver" : "./node_modules/chromedriver/bin/chromedriver",
      "webdriver.ie.driver" : ""
    }
  }

Based on this repo, what would you advice to get it to work on windows?

@giggio
Copy link
Owner

giggio commented Nov 30, 2017

@quantuminformation looking at the chromedriver_mac64.zip on you directory it looks like you are on a Mac. On a Windows it will download chromedriver_win32.zip.

@quantuminformation
Copy link

Ah makes sense, thx.

@lock
Copy link

lock bot commented Jul 10, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants