【发布时间】:2019-02-21 22:37:43
【问题描述】:
我的测试脚本正在导航到报告页面,它点击“下载报告”按钮。点击后,页面底部会出现一个IE下载对话框。
问题是,在 IE 中单击该按钮后,驱动程序似乎失去了连接。寻找一些可能的解决方法。 IEDriver 和 Webdriver nuget 包都是最新版本。这是 C#。 此问题仅在 IE 中。
这是我得到的错误:
OpenQA.Selenium.WebDriverException:对远程的 HTTP 请求 URL 的 WebDriver 服务器 http://localhost:52706/session/ea7da8ec-add0-4562-81c2-d2ebc706a073/click 60 秒后超时。 ---> System.Net.WebException:请求 已中止:操作已超时。
【问题讨论】:
-
使用“eager”而不是“normal”的pageLoadStrategy。
标签: c# selenium internet-explorer selenium-webdriver