Class Window

  • All Implemented Interfaces:
    org.openqa.selenium.interactions.Locatable, org.openqa.selenium.SearchContext, org.openqa.selenium.TakesScreenshot, org.openqa.selenium.WebElement, org.openqa.selenium.WrapsDriver

    public class Window
    extends DesktopElement
    • Constructor Detail

      • Window

        public Window​(org.openqa.selenium.WebElement element)
    • Method Detail

      • title

        public String title()
        Gets the title of the window.
        Returns:
      • isModal

        public boolean isModal()
        Gets if the window is modal.
        Returns:
      • titleBar

        public TitleBar titleBar()
        Gets the "TitleBar" of the window.
        Returns:
      • modalWindows

        public List<Window> modalWindows()
        Gets a list of all modal child windows.
        Returns:
      • popup

        public TitleBar popup()
        Gets the current WPF popup window.
        Returns:
      • contextMenu

        public Menu contextMenu()
        Gets the context menu for the window. Note: It uses the FrameworkType of the window as lookup logic. Use "GetContextMenuByFrameworkType" if you want to control this.
        Returns:
      • close

        public void close()
        Closes the window.
      • move

        public void move​(int x,
                         int y)
        Moves the window to the given coordinates.
        Parameters:
        x -
        y -
      • setTransparency

        public void setTransparency​(byte alpha)
        Brings the element to the foreground.
        Parameters:
        alpha -