Watin ContainsText method fails to find text in FireFox

Posted by alonp on Stack Overflow See other posts from Stack Overflow or by alonp
Published on 2010-06-06T14:33:30Z Indexed on 2010/06/06 14:42 UTC
Read the original article Hit count: 288

Filed under:

The ContainsText method finds the text only in specific area in the html but fails to find id in other parts of the page. The text that located under 'div id="content"' can be found But the text in other area of the html is not found (f.e 'form id="aspnetForm"')

        Browser b = new FireFox("http://localhost:8668/login.aspx");
        b.Button("login.login.button")).Click();
        bool blah = b.ContainsText("Hello");

I'm using the latest watin release. The issue is reproduced with FF3.0, FF3.5 and FF3.6 In IE it's working fine for the tested text.

© Stack Overflow or respective owner

Related posts about watin