public class WindowNavigator extends java.lang.Object implements IWindowNavigator
| Constructor and Description |
|---|
WindowNavigator(org.openqa.selenium.remote.RemoteWebDriver driver) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
closeAllAnotherWindows()
Close all windows except current
|
void |
closeAllWindows()
Closes all windows
|
java.lang.String |
openLinkInNewWindow(org.openqa.selenium.By by)
Click on link and open this link in a new browser's tab.
|
java.lang.String |
openNewWindow()
Open a new browser's tab.
|
java.lang.String |
switchToLastWindow()
Switching focus to the last opened window
|
java.lang.String |
switchToNextWindow()
Switching focus to the next opened window after current window
|
java.lang.String |
switchToPrevWindow()
Switching focus to the previously opened window before current window
|
java.lang.String |
switchToRootWindow()
Switching focus to the first opened window
|
public WindowNavigator(org.openqa.selenium.remote.RemoteWebDriver driver)
public java.lang.String switchToRootWindow()
IWindowNavigatorswitchToRootWindow in interface IWindowNavigatorpublic java.lang.String switchToLastWindow()
IWindowNavigatorswitchToLastWindow in interface IWindowNavigatorpublic java.lang.String switchToPrevWindow()
IWindowNavigatorswitchToPrevWindow in interface IWindowNavigatorpublic java.lang.String switchToNextWindow()
IWindowNavigatorswitchToNextWindow in interface IWindowNavigatorpublic java.lang.String openNewWindow()
IWindowNavigatoropenNewWindow in interface IWindowNavigatorpublic java.lang.String openLinkInNewWindow(org.openqa.selenium.By by)
IWindowNavigatoropenLinkInNewWindow in interface IWindowNavigatorby - - link descriptorpublic java.lang.String closeAllAnotherWindows()
IWindowNavigatorcloseAllAnotherWindows in interface IWindowNavigatorpublic void closeAllWindows()
IWindowNavigatorcloseAllWindows in interface IWindowNavigator