【问题标题】:rspec/capybara/selenium testing - downloading/visit external urls and checking for content typerspec/capybara/selenium testing - 下载/访问外部 url 并检查内容类型
【发布时间】:2012-08-13 07:22:47
【问题描述】:

我知道,为了让 capybara 访问外部 url,驱动程序必须是支持它的驱动程序(例如 selenium)。但是当使用 selenium 时,我不能再通过 page.response_headers 检查内容类型,因为 selenium 驱动程序不支持。 response_headers 有什么替代方法,还是我只是看错了工具集?

【问题讨论】:

    标签: testing selenium rspec cross-domain capybara


    【解决方案1】:

    我使用capybara-webkit 驱动程序,我可以确认page.response_headers 适用于外部站点。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-12-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-05-12
      • 1970-01-01
      相关资源
      最近更新 更多