Selenium: How to refresh a page over and over until it contains specific content?
We have a web application that we can submit requests to. These requests can take a variable but sometimes long time to complete (minutes). Requests are submitted for specific devices that this application manages

We can tell the request has completed in two ways, by looking at an "activity log" page for a line that marks the job (whose ID we do know) as completed, or looking at the page for the specific device to see when the list of active jobs is empty.

Neither page autorefreshes or uses Ajax - we need to refresh the page, check the page for the content we want, refesh the page and so on.

Is there some idiom with Selenium to do this? We can try a sequence of refresh/check/refresh/check commands, but that's unreliable and (when the operation complete quickly) unnnecessarily time consuming.

(Also posted over at OpenQA, but I think there may be more Selenium users here)
Selenium: How to refresh a page over and over until it contains specific content?
===

We have a web application that we can submit requests to. These requests can take a variable but sometimes long time to complete (minutes). Requests are submitted for specific devices that this application manages

We can tell the request has completed in two ways, by looking at an "activity log" page for a line that marks the job (whose ID we do know) as completed, or looking at the page for the specific device to see when the list of active jobs is empty.

Neither page autorefreshes or uses Ajax - we need to refresh the page, check the page for the content we want, refesh the page and so on.

Is there some idiom with Selenium to do this? We can try a sequence of refresh/check/refresh/check commands, but that's unreliable and (when the operation complete quickly) unnnecessarily time consuming.

(Also posted over at OpenQA, but I think there may be more Selenium users here)