Share this page

com.hp.lft.sdk.web

## Class WebLongPressArgs

- java.lang.Object
- - com.hp.lft.sdk.web.WebLongPressArgs

-     public class WebLongPressArgs
      extends java.lang.Object

  Arguments that define additional behavior for LongPress operations.
  This class can be initialized using the builder pattern.

- - ### Constructor Summary

    Constructor and Description
    `WebLongPressArgs()` Initializes a new instance of the WebLongPressArgs class with default arguments (press at the center of the object for 1 second).

  - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `double` | `getDuration()` Returns the duration for the LongPress operation.
    `Location` | `getLocation()` Returns the location to perform the LongPress operation.
    `WebLongPressArgs` | `setDuration(double duration)` Sets the number of seconds for the LongPress operation.
    `WebLongPressArgs` | `setLocation(Location location)` Sets the location to perform the LongPress operation.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### WebLongPressArgs

          public WebLongPressArgs()

      Initializes a new instance of the WebLongPressArgs class with default arguments (press at the center of the object for 1 second).

  - ### Method Detail

    - #### getLocation

          public Location getLocation()

      Returns the location to perform the LongPress operation. Possible values: `Location`
      Default value = center of the object
      Returns:
        the location to perform the LongPress operation.

    - #### setLocation

          public WebLongPressArgs setLocation(Location location)

      Sets the location to perform the LongPress operation.
      Parameters:
        `location` - the location to perform the LongPress operation. Possible values: `Location`
      Returns:
        the WebLongPressArgs instance with the updated state (builder pattern).

    - #### getDuration

          public double getDuration()

      Returns the duration for the LongPress operation.
      Returns:
        the number of seconds to press.

    - #### setDuration

          public WebLongPressArgs setDuration(double duration)

      Sets the number of seconds for the LongPress operation.
      Parameters:
        `duration` - the number of seconds to press.
      Returns:
        the WebLongPressArgs instance with the updated state (builder pattern).

Tips to improve your search results... UFT Developer Java SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: