【问题标题】:Is there a way to set for protractor a default StartPage?有没有办法为量角器设置默认的起始页?
【发布时间】:2016-02-16 00:39:22
【问题描述】:

我需要自动化触发历史回溯操作的场景。为了让我能够遵循这种情况,我需要有一个特定的 URL 作为启动页面。

我必须在哪里设置启动页面作为参数?

【问题讨论】:

  • 如果还没有,请查看this 页面是否有帮助..

标签: angularjs jasmine protractor


【解决方案1】:

假设您的目标浏览器是 Chrome,您可以使用--homepage argument(未测试):

capabilities: {
  browserName: 'chrome',
  chromeOptions: {
    args: ['--homepage="https://google.com"'] 
  }   
},

【讨论】:

    猜你喜欢
    • 2011-11-26
    • 2018-07-23
    • 2010-12-20
    • 2010-11-19
    • 1970-01-01
    • 1970-01-01
    • 2022-11-07
    • 1970-01-01
    • 2019-12-22
    相关资源
    最近更新 更多