Selenium webdriver 量角器测试未捕获baseURL

Selenium webdriver 量角器测试未捕获baseURL,selenium-webdriver,jasmine,protractor,Selenium Webdriver,Jasmine,Protractor,在我更新量角器(到1.6.1)和Jasmine(到2.1.1)之前,我有很多量角器测试工作正常。现在,当我尝试运行测试时,Chrome浏览器会打开,但不会导航到baseURL。下面是我的配置文件,敏感信息替换为xxx: exports.config = { seleniumServerJar: './node_modules/selenium-server/lib/runner/selenium-server-standalone-2.44.0.jar', chromeDriver: './n

在我更新量角器(到1.6.1)和Jasmine(到2.1.1)之前,我有很多量角器测试工作正常。现在,当我尝试运行测试时,Chrome浏览器会打开,但不会导航到baseURL。下面是我的配置文件,敏感信息替换为xxx:

 exports.config = {
seleniumServerJar: './node_modules/selenium-server/lib/runner/selenium-server-standalone-2.44.0.jar',
chromeDriver: './node_modules/chromedriver/lib/chromedriver/chromedriver',
shardTestFiles: false,
specs: [
    'test/e2e/policy-add.spec.js'
],

jasmineNodeOpts: {
    showColors: true,
    defaultTimeoutInterval: 600000,
    isVerbose: true,
    includeStackTrace: true
},

capabilities: {
    browserName: 'chrome',
    'chromeOptions': {
    args: ['--test-type']
    },

},

params: {
    login: {
    user: 'xxx@xxx.com',
    password: 'xxx'
    },
    webform: 'https://xxx'
},

baseUrl: 'https://xxx.xxx.com',
rootElement: 'body',
framework: 'jasmine',

onPrepare: function () {
    var loginHelpers = require('./test/e2e/helpers/login-helpers.js');
    loginHelpers.login();
}
})

这是我使用browser.get的方式:

this.navigate = function(url){
    browser.get(url);
    browser.ignoreSynchronization = true;
};
我通过以下方式调用该函数:

globalHelpers.navHelpers.navigate('#/');

问题似乎在于调用配置文件的onPrepare部分中的login函数。当我将登录函数移动到spec文件时,浏览器打开并导航到基本URL。

您能否显示如何调用
browser.get()
?您能否在测试中直接调用
browser.get(“#/”)
?它是无法导航还是尝试在没有基本url的情况下导航到“#/”?(顺便说一句,您没有使用jasmine2,因为您在配置文件中特别指定了jasmine)尝试了browser.get(“#/”),还尝试了browser.get()和完整的http地址。两者都有相同的效果。浏览器加载但不导航,“数据”位于url字段中。