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.void
setButton
(MouseButton button) Sets the mouse button to perform the click.void
setLocation
(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
- theMouseButton
used for the click operation.
-
ClickArgs
Constructs the default arguments for a click with the specified mouse button and location within the object.- Parameters:
button
- theMouseButton
used for the click operation.location
- theLocation
to click within the test object.
-
-
Method Details
-
getButton
Returns the mouse button set to perform the click.- Returns:
- the
MouseButton
set to perform the click.
-
setButton
Sets the mouse button to perform the click.- Parameters:
button
- theMouseButton
to perform the click.
-
getLocation
Returns the location to click within the test object.- Returns:
- the
Location
to click within the test object.
-
setLocation
Sets the location to click within the test object.- Parameters:
location
- theLocation
to click within the test object.
-