由于测试期间多个交互式浏览器设置,我必须手动设置量角器。我的设置来自量角器0.19。我升级到1.3.1'量角器/ jasminewd'不见了。
手动设置过程是否已更改?谁能指出我正确的方向?我的设置脚本的负责人:
var protractor = require('protractor');
require('protractor/jasminewd');
var utils = require('./utils.js');
//needed for jenkins
require('jasmine-reporters');
jasmine.getEnv().addReporter(
new jasmine.JUnitXmlReporter('xmloutput', true, true));
var conf = utils.readConfig();
var host = conf['server:main'].host;
var port = conf['server:main'].port;
var testbrowser = utils.readConfig()['integrationtest'].browser;
//setup
var driver1 = new protractor.Builder().
usingServer('http://localhost:4444/wd/hub').
withCapabilities({'browserName': testbrowser}).build();
driver1.manage().timeouts().setScriptTimeout(15000);
var browser = protractor.wrapDriver(driver1);
protractor.setInstance(browser);
var by = protractor.By;
var element = browser.element;
答案 0 :(得分:0)
jasminewd现已转移到自己的npm模块:https://www.npmjs.org/package/jasminewd。 如果在package.json中包含jasminewd并使用
require('jasminewd');
而不是
require('protractor/jasminewd')
一切都应该正常工作