public class WindowSession extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
WindowSession.BrowserWindow |
| Modifier and Type | Method and Description |
|---|---|
WindowSession.BrowserWindow |
defaultWindow() |
WindowSession.BrowserWindow |
getWindow(String windowName)
Get window by given name, the window must already be open
|
TimedCondition |
isWindowOpen(String windowName)
Timed condition to check and wait for a given window to be open.
|
TimedCondition |
isWindowOpen(String windowName,
TimeoutType timeoutType)
Timed condition to check and wait for a given window to be open.
|
WindowSession.BrowserWindow |
openNewWindow(String newWindow)
Opens a new window with the given name
|
WindowSession |
switchToDefault() |
public WindowSession.BrowserWindow openNewWindow(String newWindow)
newWindow - the name of the new windowpublic WindowSession.BrowserWindow getWindow(String windowName)
windowName - name of the windowIllegalStateException - if window with windowName is currently not openpublic WindowSession.BrowserWindow defaultWindow()
public WindowSession switchToDefault()
public TimedCondition isWindowOpen(String windowName, TimeoutType timeoutType)
WindowSession.BrowserWindow.switchTo()
to switch driver's focus to given window.windowName - name of the windowtimeoutType - timeout for the returned conditionpublic TimedCondition isWindowOpen(String windowName)
TimeoutType.PAGE_LOAD.windowName - name of the windowCopyright © 2015 Atlassian. All rights reserved.