-
-
Notifications
You must be signed in to change notification settings - Fork 8k
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
selenium-webdriver for Node.js gives an error when using ChromeDriver #1627
Comments
How are you creating your driver? I am unable to reproduce this using chromedriver 2.19 and 2.21 |
@jleyba, I create the driver using this code: var webdriver = require('selenium-webdriver');
var driver = new webdriver.Builder()
.forBrowser('chrome')
.build(); |
Looks like babel is rewriting code in a way that is breaking capabilities serialization. Without Babel:
With Babel:
|
Looks like Babel breaks a handful of other classes when they are converted to ES5. ES6 class syntax is fully supported in Node v4.2.x, which is the minimum supported version of Node. You should configure Babel to not translate ES6 classes (in other words, don't use |
When I don't use Also, the |
@jleyba, I am glad I found this. Is it recommended that we do not use babel with the official selenium lib (at least in the short term) ? We just started pulling babel into our stack but only started to use imports/destructuring features. Our stack is mocha + promise manager adding in I would really appreciate it any input to help us avoid any headaches in the foreseeable term. |
I've been using the following in my .babelrc without any problems:
You could also try setting the |
@jleyba Thank you! |
@ddavison Its always good to run into you here, hope to see you at the next seconf :) |
This probably means that using
No, this won't help, as Babel already ignores node_modules by default. |
Try this link. Which has the working automated testing project sample. https://nambithecoder.com/2016/10/06/automated-testing-solution/ |
The latest version (2.52.0) of selenium-webdriver for Node.js produces the following error when used with different versions of ChromeDriver:
The text was updated successfully, but these errors were encountered: