With dynamic website implementations, the phrase "the page has finished
loading" doesn't really mean anything any more.
The best practice is to wait for the thing you are interacting with next.
Watir 6 has made this much more automatic, but some additional logic may
still be required to accomplish what you need.
We'd need to know what you want to have happen after the page has loaded to
be able to give more guidance.

On Sun, Feb 12, 2017 at 9:39 PM, Joe Fleck <[email protected]> wrote:

> Hi.
>
> I am not sure I follow what happens after the field is set but if you need
> to wait for the text field you can use wait_until_present or .present?.
>
> Joe
>
>
> On Feb 11, 2017 10:21 AM, "Raja gopalan" <[email protected]>
> wrote:
>
> There are certain kind of a text_field which I am automating, when I place
> the value there like
>
> b.text_field(:id,'something').set 'hi'
>
>
> It refresh the entire page or it reloads the page, but the above code only
> wait until element present and place the value inside the text field but it
> doesn't take care of what happens after that.
>
> Is there any function I can write like given below,
>
>
> b.text_field(:id,'something').set 'hi'
>
> b.waitForPageToLoad # Code like this?
>
> --
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> [email protected]
> http://groups.google.com/group/watir-general
> [email protected]
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Watir General" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> [email protected]
> http://groups.google.com/group/watir-general
> [email protected]
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Watir General" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

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

[email protected]
http://groups.google.com/group/watir-general
[email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to