I am writing a Selenium test in PHP to test the performance of a web application in Firefox. I want to use this as a baseline to compare various performance improvements (JQuery update, PHP 5.3, etc.). The web application is very AJAX intensive, and so far I have run into one problem.
I have an AJAX call that loads content into an existing div. To check if the call is completed, I use the following line of code:
$selenium->waitForCondition('$(\'div[id="divId"]\').height() > 100', $timeout);
This works as I expected, but when I try to enter any input loaded into a div, selenium throws the error "Element input [@id =" inputId "] not found".
I checked that the identifier for the input is correct, and I tried using other input elements that load inside the div, and none of them work. I also tried to add a dream (30), so I know for sure that the elements are in the DOM and on the screen, but again it didn’t matter.
I am really stuck at this point and cannot move on until I get this problem. Any help is appreciated.
Thank you James Arms
source
share