【问题标题】:How to run HttpWatch concurrently in multiple browser windows with Selenium?如何使用 Selenium 在多个浏览器窗口中同时运行 HttpWatch?
【发布时间】:2019-03-30 20:40:07
【问题描述】:

我们希望在多个浏览器窗口中同时执行一个 selenium 脚本,并使用 HttpWatch 捕获请求时间。当我们尝试得到错误时:

com4j.ComException: 80004005 未指定的错误:AttachByTitle 失败,因为找到多个标题为“Signin”的 IE 或 Chrome 页面 - AttachByTitle 失败:.\invoke.cpp:517

知道如何解决这个问题吗?

【问题讨论】:

    标签: selenium httpwatch


    【解决方案1】:

    该错误表明 HttpWatch 正在尝试按浏览器窗口的标题附加,但您有多个具有相同标题的窗口。

    在附加 HttpWatch 之前,请将每个浏览器窗口的标题设置为唯一的名称。文档中的此页面显示了如何在调用 AttachByTitle 之前使用 Selenium 将标题设置为唯一的 GUID:

    https://apihelp.httpwatch.com/HttpWatch_API~HttpWatch.Controller~AttachByTitle.html

    【讨论】:

      猜你喜欢
      • 2014-01-17
      • 2013-05-09
      • 1970-01-01
      • 2017-09-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-12-28
      • 2013-08-23
      相关资源
      最近更新 更多