Package com.atlassian.jira.pageobjects
Class WindowSession.BrowserWindow
java.lang.Object
com.atlassian.jira.pageobjects.WindowSession.BrowserWindow
- Enclosing class:
WindowSession
-
Method Summary
Modifier and TypeMethodDescriptionclose()Closes this window.<I,O> O doInWindow(I input, com.google.common.base.Function<I, O> function) doInWindow(Runnable runnable) Execute some operations within this window and switch back to the default window.com.atlassian.pageobjects.elements.query.TimedConditionisOpen()open()Switch back to default window and return parent window sessionswitchTo()Switch to this window.
-
Method Details
-
isOpen
public com.atlassian.pageobjects.elements.query.TimedCondition isOpen() -
open
-
switchTo
Switch to this window. Future webdriver commands will be done in this window- Returns:
- the new active window
-
switchBack
Switch back to default window and return parent window session- Returns:
- the session this window was associated with
-
close
Closes this window. Remember toWindowSession.switchToDefault()after this.- Returns:
- parent window session
-
doInWindow
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)
-