Attaching WatiN to Firefox

烂漫一生 提交于 2019-12-10 20:20:30

问题


Using WatiN, Im facing some issues with

FireFox FF = new FireFox ("http://www.google.com");,

FireFox always crashes at this point and VS report :

Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host

any idea why this is happening ?

Win7 32Bit - VS2008 - .NET 3.5 - Firefox 3.5 - WatiN-2.0.10.928-net-2.0


回答1:


The jssh that comes with Watin CTP has an issue with FireFox 3.5.

I downloaded Swat (Simple Web Automation Toolkit - sourceforge project) and it came with a newer version of jssh which is for FF 3.5 and now Watin starts FF successfully..




回答2:


Doesn't WatiN use COM Interop under the covers? You probably need to run your process as a 32 bit process (i.e. kick off 32 bit NUnit).



来源:https://stackoverflow.com/questions/1485054/attaching-watin-to-firefox

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!