-
Notifications
You must be signed in to change notification settings - Fork 51
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
Add command to install chromedriver #23
Comments
I believe there are a few chromedriver packages already on npm: https://www.npmjs.com/search?q=chromedriver If one of those doesn't meet your needs it should still be a separate package as this is just an installer for nw.js and not for installing other packages.
Thanks! |
Unfortunately, https://github.com/nwjs/nw.js/wiki/Chromedriver which results in none of the proposed modules working. The reason for requesting these repos to be bundled has 2 parts:
At the very least, can we make this repo more developer friendly? (e.g. abstract URL resolution piece, provide a CLI utility to find out where the existing |
You can get the path to where nw has been installed with I understand it would make it easier if they were bundled together. I just don't want to go down the path of maintaining support for download locations and compatible versions of web drivers, at least not in this repo. I don't have the capacity to maintain that atm. |
+1 for this issue, I vote for it to be re-opened! |
Reopening to at least explore it. |
Note that for certain test frameworks, you don't have to have chromedriver.exe in the same folder as nw.exe. One example is when using the protractor.js framework. Here is protractor-config.js:
Note that paths above for chromedriver.exe and nw.exe are specified in separate places. |
Ah, if that's the case then we might be able to request the |
I've added support for Also, you can achieve the same using the CLI:
Let me know if you find any issues. |
As a heads up, we really want to set webdriver-manager update --standalone true --chrome false --chromedriver-nw true |
Additionally, there was a bug in the installer that should be patched in pose/webdriver-manager#14 |
Alright, after a bit of working around errors. We got both a non-symlink version working with the code that @gbmhunter posted (once the pose/webdriver-manager#14 patches are landed). Here are the relevant code pieces: # Install Selenium dependencies
webdriver-manager update --standalone true --chrome false --chromedriver-nw true
# Start webdriver server
webdriver-manager start // Load in dependencies
var nw = require('nw');
var wd = require('wd');
// Resolve nw.js and start wd against our nw.js instance
var nwCmd = nw.findpath();
var browser = wd.remote();
browser.init({
browserName: 'chrome',
chromeOptions: {
binary: nwCmd
}
}); @shama I will leave it to your discretion to choose to leave the issue open or close it. I am content with either scenario. |
This would be pretty conveniant for testing with Selenium. Since the NW.js binary lives inside |
The current setup for testing is a bit tedious. It would be nice if we could automate chromedriver installation similarly to how simple
nw
is. For example:The text was updated successfully, but these errors were encountered: