2013-08-26 29 views
0

当我调用driver.WindowHandles时,我的超时问题进入我的硒测试。c#硒因特网探险者超时

我想在IE驱动程序中增加60秒的超时默认值。

错误消息;

ex = {"The HTTP request to the remote WebDriver server for URL http://localhost:43196/session/3385234a-4378-419a-9e3a-c59e6b0f7913/window timed out after 60 seconds."} 
+0

的时间跨度这不是很清楚的问题。你应该分享更多的信息。比如,'binary'等同于什么,以及您使用的是iedriver.exe还是'firefoxdriver.exe'等。 – sircapsalot

+0

我只是试图增加IE驱动程序的默认超时时间。 –

+0

所以你为什么要实例化'FirefoxDriver'而不是'InternetExplorerDriver' – sircapsalot

回答

1

这是相当简单的增加要求

InternetExplorerDriver driver = new InternetExplorerDriver(@"c:\path", options, TimeSpan.FromMinutes(2));