Hi
I was just wondering how i can wait for a hidden element to appear on the page,
i triedni seleum.is_element_present
but it dosent seem to be working.
thanks
Hi
I was just wondering how i can wait for a hidden element to appear on the page,
i triedni seleum.is_element_present
but it dosent seem to be working.
thanks
wait_for_element(locator, options={})
Wait for an element to be present (the wait in happenning browser side).
What you want is the is_visible method. Below will wait for 30 seconds to become visible
!30.times{ break if (@selenium.is_visible("locator") rescue false); sleep 1 }