Package com.hp.lft.sdk
Class ClickArgs
java.lang.Object
com.hp.lft.sdk.ClickArgs
Class defining operations that can be specified in a Click operation.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs the default arguments for a click, which is a click with the left mouse button, at the center of the object.ClickArgs(MouseButton button) Constructs the default arguments for a click with the specified MouseButton and the default location (center).ClickArgs(MouseButton button, Location location) Constructs the default arguments for a click with the specified mouse button and location within the object. -
Method Summary
Modifier and TypeMethodDescriptionReturns the mouse button set to perform the click.Returns the location to click within the test object.voidsetButton(MouseButton button) Sets the mouse button to perform the click.voidsetLocation(Location location) Sets the location to click within the test object.
-
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
Constructs the default arguments for a click with the specified MouseButton and the default location (center).- Parameters:
button- theMouseButtonused for the click operation.
-
ClickArgs
Constructs the default arguments for a click with the specified mouse button and location within the object.- Parameters:
button- theMouseButtonused for the click operation.location- theLocationto click within the test object.
-
-
Method Details
-
getButton
Returns the mouse button set to perform the click.- Returns:
- the
MouseButtonset to perform the click.
-
setButton
Sets the mouse button to perform the click.- Parameters:
button- theMouseButtonto perform the click.
-
getLocation
Returns the location to click within the test object.- Returns:
- the
Locationto click within the test object.
-
setLocation
Sets the location to click within the test object.- Parameters:
location- theLocationto click within the test object.
-