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 PerformabletoActiveElement()static PerformabletoAlert()static PerformabletoDefaultContext()static PerformabletoFrame(java.lang.Integer frameId)static PerformabletoFrame(java.lang.String frameName)static PerformabletoFrame(org.openqa.selenium.WebElement webElement)static PerformabletoNewWindow()static PerformabletoParentFrame()static PerformabletoTheOtherWindow()Switch to the first window that is not the current window.static PerformabletoWindow(java.lang.String nameOrHandle)static PerformabletoWindowTitled(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
-