Class Switch
java.lang.Object
net.serenitybdd.screenplay.actions.Switch
public class Switch
extends java.lang.Object
Switch to a different frame or window.
This wraps the WebDriver.switchTo() methods as Screenplay interactions.
-
Constructor Summary
Constructors Constructor Description Switch()
-
Method Summary
Modifier and Type Method Description static Performable
toActiveElement()
static Performable
toAlert()
static Performable
toDefaultContext()
static Performable
toFrame(java.lang.Integer frameId)
static Performable
toFrame(java.lang.String frameName)
static Performable
toFrame(org.openqa.selenium.WebElement webElement)
static Performable
toNewWindow()
static Performable
toParentFrame()
static Performable
toTheOtherWindow()
Switch to the first window that is not the current window.static Performable
toWindow(java.lang.String nameOrHandle)
static Performable
toWindowTitled(java.lang.String title)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-