It works.

вторник, 14 января 2014 г., 2:08:37 UTC+4 пользователь Super Kevy написал:
>
>  Object.wait_until_present
>
>
> On Monday, January 13, 2014 5:33:14 AM UTC-6, QOExcel wrote:
>>
>> Hi, everyone!!
>> I try to find button on just opened page without sleep command.
>>  
>> def open_user_creation_dialog
>>     sleep 1
>>      self.create_user_button_element.when_visible.click
>>   end
>>
>> When i use piece of code without sleep for Chrome browser, my page is 
>> closed and i can't find defined button. There isn't such problem for FF.
>> I try to use a lot of variants to fix it, like  : 
>> def when_present(timeout=5)
>> def when_visible(timeout=5)
>> def when_not_visible(timeout=5)
>> def wait_until(timeout=5, message=nil, &block)
>>
>>
>>
>>
>> But these variants don't help to solve my problem/
>> Are there some ideas?
>>
>

-- 
-- 
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/groups/opt_out.

Reply via email to