|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.pageobjects.elements.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 |
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()
|
| 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 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 condition
public 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 | |||||||||