Class ClickArgs

java.lang.Object
com.hp.lft.sdk.ClickArgs

public class ClickArgs extends Object
Class defining operations that can be specified in a Click operation.
  • Constructor Details

    • ClickArgs

      public ClickArgs()
      Constructs the default arguments for a click, which is a click with the left mouse button, at the center of the object.
    • ClickArgs

      public ClickArgs(MouseButton button)
      Constructs the default arguments for a click with the specified MouseButton and the default location (center).
      Parameters:
      button - the MouseButton used for the click operation.
    • ClickArgs

      public ClickArgs(MouseButton button, Location location)
      Constructs the default arguments for a click with the specified mouse button and location within the object.
      Parameters:
      button - the MouseButton used for the click operation.
      location - the Location to click within the test object.
  • Method Details

    • getButton

      public MouseButton getButton()
      Returns the mouse button set to perform the click.
      Returns:
      the MouseButton set to perform the click.
    • setButton

      public void setButton(MouseButton button)
      Sets the mouse button to perform the click.
      Parameters:
      button - the MouseButton to perform the click.
    • getLocation

      public Location getLocation()
      Returns the location to click within the test object.
      Returns:
      the Location to click within the test object.
    • setLocation

      public void setLocation(Location location)
      Sets the location to click within the test object.
      Parameters:
      location - the Location to click within the test object.