|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.pageobjects.WindowSession
public class WindowSession
Utility for opening new window sessions.
Nested Class Summary | |
---|---|
class |
WindowSession.BrowserWindow
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public WindowSession.BrowserWindow openNewWindow(String newWindow)
newWindow
- the name of the new window
public WindowSession.BrowserWindow getWindow(String windowName)
windowName
- name of the window
IllegalStateException
- 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)
WindowSession.BrowserWindow.switchTo()
to switch driver's focus to given window.
windowName
- name of the windowtimeoutType
- timeout for the returned condition
public com.atlassian.pageobjects.elements.query.TimedCondition isWindowOpen(String windowName)
TimeoutType.PAGE_LOAD
.
windowName
- name of the window
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |