开发者

Watin accessing localhost

When executing the c# code in MSTest involving WatiN

var browser = new IE("http://localhost:56034/");

The web page is displayed in IE but after about a minute, I receive the error

Timeout while waiting for main document becoming available with the error message

Timeout while waiting for main document becoming a开发者_如何学Pythonvailable

The code

var browser = new IE("http://www.bing.com/");

works fine.

I am running IIS Express 7.5. Since I am new to the WatiN I am hoping that I am missing something simple.


Following the advice in http://spin.atomicobject.com/2010/12/15/watin-and-com-errors-enable-ie-protected-mode-for-local-intranet-zone, turning ON protected mode for the intranet zone in IE 8 solved the problem.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜