Class WaitForPageReload
java.lang.Object
com.atlassian.jira.pageobjects.util.WaitForPageReload
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterExecuting
(Runnable action) Performs given action and waits for page reload using dummy javascript variable.
-
Constructor Details
-
WaitForPageReload
public WaitForPageReload()
-
-
Method Details
-
afterExecuting
Performs given action and waits for page reload using dummy javascript variable. It's useful when a form submit is done with javascript in asetTimeout()
function. Due to the code being executed in a separate execution context the page may not be immediately reloaded. This method ensures the page has been reloaded. It does that by setting some javascript document variable, performing given action and waiting until this variable is undefined (or a timeout occurred).- Parameters:
action
- the action to be performed, typically clicking a button
-