Hi, everyone!!
I use watir-webdriver for automation. I use chrome and firefox browsers.
Actually i try to find button element on just opened web page.
def open_user_creation_dialog
sleep 1
self.create_user_button_element.when_visible.click
end
When i use sleep command for Chrome, button element can be found. When i
use FF, i can find element without sleep. I try to avoid using sleep
command in my tests.. Are there some ideas on this subject? By the way i
found useless these commands to fix my problem for Chrome :
def when_present(timeout=5)
def when_visible(timeout=5)
def when_not_visible(timeout=5)
def wait_until(timeout=5, message=nil, &block)
--
--
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.