com.hp.lft.sdk.web

Interface WebElement

    • Method Detail

      • doubleClick

        void doubleClick()
                  throws GeneralLeanFtException
        Clicks on the object twice.
        If you are testing a web or hybrid application on a mobile device, this method is equivalent to performing a DoubleTap gesture.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • doubleClick

        void doubleClick(WebDoubleClickArgs args)
                  throws GeneralLeanFtException
        Clicks on an object twice according to the specified behavior. If you are testing a web or hybrid application on a mobile device, this method is equivalent to performing a DoubleTap gesture.
        Parameters:
        args - additional arguments for the DoubleClick method.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • hoverTap

        void hoverTap(Location location)
               throws GeneralLeanFtException
        When hover is supported, places the pointer on the object. Otherwise, taps the object.
        Parameters:
        location - location over which to hover.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • pan

        void pan(long deltaX,
                 long deltaY)
          throws GeneralLeanFtException
        Performs a pan gesture on the object.
        Parameters:
        deltaX - the distance moved on the x-axis
        deltaY - the distance moved on the y-axis
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • pinch

        void pinch(double scale)
            throws GeneralLeanFtException
        Performs a pinch gesture on the object.
        Parameters:
        scale - the zoom scale resulting from the pinch gesture. This is the ratio between the distance between the fingers at the end of the pinch gesture to the distance between the fingers at the beginning of the pinch gesture.
        For example, if you were to touch a screen with your fingers 6 cm apart, and pinch until your fingers were 3 cm apart, the scale would be 0.5. Likewise, if your fingers were 3 cm apart, and you pinch until your fingers are 6 cm apart, the scale would be 2.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • getAccessibilityName

        java.lang.String getAccessibilityName()
                                       throws GeneralLeanFtException
        Returns the element's AccessibilityName.
        Returns:
        the element's AccessibilityName.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • getCSSSelector

        java.lang.String getCSSSelector()
                                 throws GeneralLeanFtException
        Returns the element's CSS Selector.
        Returns:
        the element's CSS Selector.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.