com.atlassian.jira.pageobjects
Class WindowSession.BrowserWindow

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

public class WindowSession.BrowserWindow
extends Object


Method Summary
 WindowSession close()
          Closes this window.
<I,O> O
doInWindow(I input, com.google.common.base.Function<I,O> function)
           
 WindowSession doInWindow(Runnable runnable)
          Execute some operations within this window and switch back to the default window.
 com.atlassian.pageobjects.elements.query.TimedCondition isOpen()
           
 WindowSession.BrowserWindow open()
           
 WindowSession switchBack()
          Switch back to default window and return parent window session
 WindowSession.BrowserWindow switchTo()
          Switch to this window.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isOpen

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

open

public WindowSession.BrowserWindow 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)


Copyright © 2002-2014 Atlassian. All Rights Reserved.