Link click does not work when using Find.By in FireFox
Brought to you by:
jvmenen
public static void linkclickFF()
{
//FireFox myIBrowser = new FireFox("http://www.google.com");
IBrowser browser = BrowserFactory.Create(BrowserType.FireFox);
browser.GoTo("http://www.google.com");
browser.Link(Find.By("href", "http://www.google.com/advanced_search?hl=en")).Click();
//browser.Link(Find.ByText("Advanced Search")).Click(); }
Get error message: Error sending last message to jssh server: SyntaxError: syntax error
The code above works if changed browser type to IBrowser browser = BrowserFactory.Create(BrowserType.InternetExplorer);
or if using Firefox, it works if using Find.ByText: browser.Link(Find.ByText("Advanced Search")).Click();
Issue is fixed in the upcoming WatiN 2.0 beta 1 release
Thanks for reporting.