Class DesktopElement

    • Constructor Detail

      • DesktopElement

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

      • execute

        public org.openqa.selenium.remote.Response execute​(String command,
                                                           Map<String,​?> parameters)
        Overrides:
        execute in class org.openqa.selenium.remote.RemoteWebElement
      • createRemoteWebElementFromResponse

        protected org.openqa.selenium.remote.RemoteWebElement createRemoteWebElementFromResponse​(org.openqa.selenium.remote.Response response)
      • createRemoteWebElementsFromResponse

        protected List<org.openqa.selenium.remote.RemoteWebElement> createRemoteWebElementsFromResponse​(org.openqa.selenium.remote.Response response)
      • createLocalDateTimeFromResponse

        protected List<LocalDateTime> createLocalDateTimeFromResponse​(org.openqa.selenium.remote.Response response)
      • callVoidCommand

        protected org.openqa.selenium.remote.Response callVoidCommand​(String command)
      • callValueCommand

        protected org.openqa.selenium.remote.Response callValueCommand​(String command,
                                                                       String value)
      • callValueCommand

        protected org.openqa.selenium.remote.Response callValueCommand​(String command,
                                                                       int index)
      • callValueCommand

        protected org.openqa.selenium.remote.Response callValueCommand​(String command,
                                                                       int index,
                                                                       String text)
      • callValueCommand

        protected org.openqa.selenium.remote.Response callValueCommand​(String command,
                                                                       int index,
                                                                       String text,
                                                                       int count)
      • callValueCommand

        protected org.openqa.selenium.remote.Response callValueCommand​(String command,
                                                                       int x,
                                                                       int y)
      • callValueCommand

        protected org.openqa.selenium.remote.Response callValueCommand​(String command,
                                                                       LocalDateTime dateTime)
      • parseDouble

        protected double parseDouble​(org.openqa.selenium.remote.Response response)
      • getName

        public String getName()
        Getting the "Name" attribute of an element.
        Returns:
        The "Name" attribute of the current element.
      • getActiveWindow

        public Window getActiveWindow()
        Get the active window.
        Returns:
        The active window.
      • getElementRect

        public org.openqa.selenium.Rectangle getElementRect()
        Get Bounding Rectangle of element.
        Returns:
        Rectangle instance.
      • setAsRootElement

        public void setAsRootElement()
        Sets the current element as the root element of the driver.
      • getAttribute

        public String getAttribute​(String name)
        Get the value of an element attribute.
        Specified by:
        getAttribute in interface org.openqa.selenium.WebElement
        Overrides:
        getAttribute in class org.openqa.selenium.remote.RemoteWebElement
        Parameters:
        name - name of attribute.
        Returns:
        value of attribute.
      • mouseActions

        public ElementMouseActions mouseActions()
        Get Mouse Actions instance.
        Returns:
        MouseActions instance.
      • touchActions

        public TouchActions touchActions()
        Get Touch Actions instance.
        Returns:
        Touch Actions instance.
      • screenshotActions

        public ScreenshotActions screenshotActions()
        Get Screenshot Actions of current item.
        Returns:
        ScreenshotActions instance.
      • castTo

        public WebElementCast castTo()
        Cast DesktopElement to a Typed Element.
        Returns:
        WebElementExtensions instance.
      • toCoordinateElement

        public CoordinateElement toCoordinateElement()
        Cast DesktopElement to a Coordinate Element.
        Returns:
        WebElementExtensions instance.