Class Switch
java.lang.Object
net.serenitybdd.screenplay.actions.Switch
Switch to a different frame or window.
This wraps the WebDriver.switchTo() methods as Screenplay interactions.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Performable
static Performable
toAlert()
static Performable
static Performable
static Performable
static Performable
toFrame
(org.openqa.selenium.WebElement webElement) static Performable
static Performable
static Performable
Switch to the first window that is not the current window.static Performable
static Performable
toWindowTitled
(String title)
-
Constructor Details
-
Switch
public Switch()
-
-
Method Details
-
toFrame
-
toFrame
-
toFrame
-
toParentFrame
-
toWindow
-
toNewWindow
-
toWindowTitled
-
toTheOtherWindow
Switch to the first window that is not the current window.- Returns:
-
toAlert
-
toDefaultContext
-
toActiveElement
-