Couldn't attachto Firefox 3.x browser by using Browser.AttachTo<FireFox>method in WatiN 2.0 RC1
Posted
by Shu Yang
on Stack Overflow
See other posts from Stack Overflow
or by Shu Yang
Published on 2010-03-19T08:53:24Z
Indexed on
2010/03/22
9:01 UTC
Read the original article
Hit count: 1090
I am using HTTPWatch automation API to launch a new Firefox instance like that:
HttpWatch.Controller ct = new HttpWatch.Controller();
HttpWatch.Plugin plugin = ct.FireFox.New("");
plugin.GotoURL("http://www.google.com");
These codes could start a Firefox browser successfully. Then I want to control the browser in WatiN 2.0:
FireFox ff = Browser.AttachTo<FireFox>(Find.ByTitle("Google"));
WatiN could not find Firefox window (JSSH plugin has been added in Firefox). But the same test on IE 7 is ok.
I even tried to open a Firefox window manually and visit google.com page. WaitN in IE7 could attach to the browser, but Firefox failed.
Is there anything wrong with my codes? Or any other advice? Thanks in advance!
Here is the config for my environment:
- OS: Windows XP Pro SP2
- WatiN: 2.0 RC1
- Browser: IE 7, Firefox 3.0/3.5/3.6 with JSSH plugin
© Stack Overflow or respective owner