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

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -