tags:

views:

41

answers:

2

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

+1  A: 

wait_for_element(locator, options={})

Wait for an element to be present (the wait in happenning browser side).

fantactuka
+1  A: 

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 }
AutomatedTester