Element-34 / php-webdriver

thin php client for webdriver.
122 stars 55 forks source link

AJAX loading of the page #42

Open chrisrolfe198 opened 11 years ago

chrisrolfe198 commented 11 years ago

Not sure if this is the right place to raise this but....

I am running a test that fills in a form inside an iframe, then upon submitting the form it makes an AJAX request that hides the form and fills in a div and makes it visible.

For some reason when it comes to the second div it seems to think its still hidden because I get this error:

13:44:26.709 WARN - Exception: Element is not currently visible and so may not be interacted with

However I can see the submit form, I have double checked my selector and its correct.

adam-lynch commented 11 years ago

Have you tried putting in a sleep/wait? Maybe it's just too fast

chrisrolfe198 commented 11 years ago

I have added in a sleep for 20 seconds and its still not seeing the element.