Fix tests

This commit is contained in:
Girish Ramakrishnan 2019-08-07 06:50:00 -07:00
parent 738113abba
commit 3cac63e432
1 changed files with 5 additions and 4 deletions

View File

@ -10,8 +10,10 @@ var execSync = require('child_process').execSync,
path = require('path'),
webdriver = require('selenium-webdriver');
var by = webdriver.By,
until = webdriver.until;
var by = require('selenium-webdriver').By,
until = require('selenium-webdriver').until,
Key = require('selenium-webdriver').Key,
Builder = require('selenium-webdriver').Builder;
var accessKey = 'admin',
secretKey = 'secretkey';
@ -25,8 +27,7 @@ process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
describe('Application life cycle test', function () {
this.timeout(0);
var chrome = require('selenium-webdriver/chrome');
var server, browser = new chrome.Driver();
var server, browser = new Builder().forBrowser('chrome').build();
var username = 'admin', password = 'changeme';
before(function (done) {