Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Assuming that the refresh caused by the interaction is something that Selenium can detect, then the following method will likely do what you need:</p> <p><a href="http://selenium.googlecode.com/svn/trunk/docs/api/java/com/thoughtworks/selenium/Selenium.html#waitForPageToLoad%28java.lang.String%29" rel="nofollow" title="waitForPageToLoad">waitForPageToLoad</a></p> <p>As far as I know, this method checks a state within the browser to see if the browser thinks it's loading something, and waits until this state is cleared. However, this ready state is sort of old - there are so many ways to dynamically load a page or part of a page that the ready state isn't always an accurate depiction of what's going on.</p> <p>If you know what is going to change as a result of your action - that is, if you know that after you interact with the drop down list, specific UI elements will appear that were not on the page before - then you would likely be better off waiting for those specific UI elements to appear. You could do this by writing a method that repeatedly checks for <a href="http://selenium.googlecode.com/svn/trunk/docs/api/java/com/thoughtworks/selenium/Selenium.html#isTextPresent%28java.lang.String%29" rel="nofollow" title="isTextPresent">isTextPresent</a> and waits in small increments, until either a timeout is reached or the expected element appears. There are other "is X Present" methods that can be used in these methods, which you can find elsewhere in the Selenium Interface I linked to.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload