public class

WindowSession.BrowserWindow

extends Object
java.lang.Object
   ↳ com.atlassian.jira.pageobjects.WindowSession.BrowserWindow

Summary

Public Methods
WindowSession close()
Closes this window.
<I, O> O doInWindow(I input, Function<I, O> function)
WindowSession doInWindow(Runnable runnable)
Execute some operations within this window and switch back to the default window.
TimedCondition isOpen()
WindowSession.BrowserWindow open()
WindowSession switchBack()
Switch back to default window and return parent window session
WindowSession.BrowserWindow switchTo()
Switch to this window.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public WindowSession close ()

Closes this window. Remember to switchToDefault() after this.

Returns
  • parent window session

public O doInWindow (I input, Function<I, O> function)

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

public TimedCondition isOpen ()

public WindowSession switchBack ()

Switch back to default window and return parent window session

Returns
  • the session this window was associated with

public WindowSession.BrowserWindow switchTo ()

Switch to this window. Future webdriver commands will be done in this window

Returns
  • the new active window