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
|
com.atlassian.pageobjects.elements.query.TimedCondition |
isWindowOpen(String windowName)
Timed condition to check and wait for a given window to be open.
|
com.atlassian.pageobjects.elements.query.TimedCondition |
isWindowOpen(String windowName,
com.atlassian.pageobjects.elements.timeout.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 com.atlassian.pageobjects.elements.query.TimedCondition isWindowOpen(String windowName, com.atlassian.pageobjects.elements.timeout.TimeoutType timeoutType)
Timed condition to check and wait for a given window to be open.
NOTE: this does NOT mean that this window has focus, it only means that it is one of the driver windows that
the underlying driver is aware of. Use WindowSession.BrowserWindow.switchTo()
to switch driver's focus to given window.
windowName
- name of the windowtimeoutType
- timeout for the returned conditionpublic com.atlassian.pageobjects.elements.query.TimedCondition isWindowOpen(String windowName)
TimeoutType.PAGE_LOAD
.windowName
- name of the windowCopyright © 2002-2015 Atlassian. All Rights Reserved.