contains_text is deprecated and omitted from watir-webdriver. see
http://github.com/jarib/watir-webdriver/issues/closed#issue/7

On Fri, Aug 13, 2010 at 23:43, Chan Nguyen <atbl1...@gmail.com> wrote:

> Hi everyone,
> When I used watir with IE under Windows, everything worked fine. But
> when I tried with FF under Linux, the complier complained that :
>
> undefined method `contains_text' for #<Watir::Frame:0xb749c638>
> (NoMethodError)
>
> And my code snippet is :
> main_frame = browser.frame( :id, "Main_Body" )
> if main_frame.contains_text( "Weather" )
> puts "Passed"
>
> Is there any significant different between 'watir' and 'watir-
> webdriver'? And how can I work around this issue? Any idea?
>
> Thanks,
>
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> You received this message because you are subscribed to
> http://groups.google.com/group/watir-general
> To post: watir-general@googlegroups.com
> To unsubscribe: 
> watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com>
>

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com

Reply via email to