问题
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