javascript - Not able to set chrome user agent from spec in protractor -


i have test need launch 2 browsers, 1 android user-agent , other windows-mobile user agent. have set android user agent in conf file. windows mobile, trying following:

driver1 = new protractor.builder() .usingserver('http://localhost:4444/wd/hub') .withcapabilities(protractor.capabilities.chrome()).setchromeoptions(new chrome.options().addarguments("--user-agent=" + useragent)).build(); 

on run, says:

failed: chrome not defined


Comments

Popular posts from this blog

php - Hide output during test execution -

javascript - Migrate custom AngularJS filter from 1.2.28 to 1.4.x -

Update Magento products with multiple images -