Class WindowSession.BrowserWindow

java.lang.Object
com.atlassian.jira.pageobjects.WindowSession.BrowserWindow
Enclosing class:
WindowSession

public class WindowSession.BrowserWindow extends Object
  • Method Details

    • isOpen

      public com.atlassian.pageobjects.elements.query.TimedCondition isOpen()
    • open

    • switchTo

      public WindowSession.BrowserWindow switchTo()
      Switch to this window. Future webdriver commands will be done in this window
      Returns:
      the new active window
    • switchBack

      public WindowSession switchBack()
      Switch back to default window and return parent window session
      Returns:
      the session this window was associated with
    • close

      public WindowSession close()
      Closes this window. Remember to WindowSession.switchToDefault() after this.
      Returns:
      parent window session
    • doInWindow

      public WindowSession doInWindow(Runnable runnable)
      Execute some operations within this window and switch back to the default window.
      Parameters:
      runnable - operations to execute
      Returns:
      parent window session
    • doInWindow

      public <I, O> O doInWindow(@Nullable I input, com.google.common.base.Function<I,O> function)