Class Switch


  • public class Switch
    extends Object
    Switch to a different frame or window. This wraps the WebDriver.switchTo() methods as Screenplay interactions.
    • Constructor Detail

      • Switch

        public Switch()
    • Method Detail

      • toFrame

        public static Performable toFrame​(org.openqa.selenium.WebElement webElement)
      • toParentFrame

        public static Performable toParentFrame()
      • toNewWindow

        public static Performable toNewWindow()
      • toTheOtherWindow

        public static Performable toTheOtherWindow()
        Switch to the first window that is not the current window.
        Returns:
      • toDefaultContext

        public static Performable toDefaultContext()
      • toActiveElement

        public static Performable toActiveElement()