I have recently installed selenium-webdriver javascript(node) client 3.6.0
steps are follows;
# npm install webdriver
# npm install selenium-webdriver
# npm install chromedriver
install them into my project folder
then make a js file into that name "library.js"
var webdriver = require('selenium-webdriver');
var driver = new webdriver.Builder().forBrowser('chrome').build();
By = webdriver.By;
until = webdriver.until;
driver.get('http://www.google.co.in');
This is showing async execute(command) error at require('selenium-webdriver')
node version V7.1.0. npm version 3.10.9 chrome Version - ChromeDriver 2.35.528139 (47ead77cb35ad2a9a83248b292151462a66cd881)
Help my in this how to run this
I ran into this issue. Run node -v
if your version is under 8 it doesn't have the ability to handle the async
command. You'll have to update Node.
The same issue, fix by upgrade Node to v8.9.4 as Faraji said above.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With