public class WaitForPageReload extends Object
Constructor and Description |
---|
WaitForPageReload() |
Modifier and Type | Method and Description |
---|---|
void |
afterExecuting(Runnable action)
Performs given action and waits for page reload using dummy javascript variable.
|
public void afterExecuting(Runnable action)
setTimeout()
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).action
- the action to be performed, typically clicking a buttonCopyright © 2002-2015 Atlassian. All Rights Reserved.