Class WaitForPageReload

java.lang.Object
com.atlassian.jira.pageobjects.util.WaitForPageReload

public class WaitForPageReload extends Object
  • Constructor Details

    • WaitForPageReload

      public WaitForPageReload()
  • Method Details

    • afterExecuting

      public void afterExecuting(Runnable action)
      Performs given action and waits for page reload using dummy javascript variable. It's useful when a form submit is done with javascript in a 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).
      Parameters:
      action - the action to be performed, typically clicking a button