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
Post a Comment