[Wtr-general] while not exists does not work in Firewatir?
Paul Carvalho
tester.paul at gmail.com
Tue Feb 6 09:58:34 EST 2007
I try to avoid icky double negatives. Does the following line work for you
instead?
sleep 0.5 until $browser.link(:text, "Withdraw").exists?
On 05/02/07, steven <forum-watir-users at openqa.org> wrote:
>
> The following code only seems to work if $browser = ie.new, and not
> firefox.new (i.e. with Firewatir). Am I missing something or is this a
> known issue?
>
> while not ($browser.link(:text,"Withdraw").exists?)
> sleep 0.5
> end
>
> To clarify, when I mean does not work, I mean, it never catches the link
> as existing, even though it is there. It just stays in the sleep command
> over and over.
>
> Thanks,
> Steve
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20070206/8c3d3282/attachment.html
More information about the Wtr-general
mailing list