mercredi 31 janvier 2018

SyntaxError: Unexpected identifier in selenium-webdriver/lib/http.js:454 async execute(command)

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('www.google.co.in');

enter image description here

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

Aucun commentaire:

Enregistrer un commentaire