My requirement is not the element to be present, but page is getting 
refreshed after each entry to the text field, but watir doesn't wait for 
page to be refreshed. It quickly goes to another field but what actually 
happening was page is getting refreshed at that point so the recent entry 
will be deleted. 

On Monday, February 13, 2017 at 8:40:03 AM UTC+5:30, Gerard Thomas wrote:
>
> You could always wait for an element on the page to exist again. like this 
>
> browser.element(:id, 'foo').wait_until_present
>
> or you could add a hard sleep in there
>
>
> On Saturday, February 11, 2017 at 10:21:56 AM UTC-5, Raja gopalan 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.

Reply via email to