Class SHAFT.GUI.SikuliX.SikuliActions
java.lang.Object
com.shaft.driver.SHAFT.GUI.SikuliX.SikuliActions
- Enclosing class:
SHAFT.GUI.SikuliX
Reflection-backed wrapper for optional SikuliX element actions.
-
Method Summary
Modifier and TypeMethodDescriptionclick(byte[] targetElement) Clicks the target image.Clicks the target image.doubleClick(byte[] targetElement) Double-clicks the target image.doubleClick(String pathToTargetElementImage) Double-clicks the target image.dragAndDrop(byte[] draggableElement, byte[] targetElement) Drags one target image to another target image.dragAndDrop(String pathToDraggableElementImage, String pathToTargetElementImage) Drags one target image to another target image.getText(byte[] targetElement) Reads text from the target image region.Reads text from the target image region.hover(byte[] targetElement) Moves the mouse over the target image.Moves the mouse over the target image.rightClick(byte[] targetElement) Right-clicks the target image.rightClick(String pathToTargetElementImage) Right-clicks the target image.Types text into the target image region.Types text into the target image region.typeAppend(byte[] targetElement, String text) Appends text into the target image region.typeAppend(String pathToTargetElementImage, String text) Appends text into the target image region.typeSecure(byte[] targetElement, String text) Types sensitive text into the target image region.typeSecure(String pathToTargetElementImage, String text) Types sensitive text into the target image region.
-
Method Details
-
click
Clicks the target image.- Parameters:
pathToTargetElementImage- path to the target element reference image- Returns:
- self reference for chaining
-
click
Clicks the target image.- Parameters:
targetElement- target element reference image bytes- Returns:
- self reference for chaining
-
type
Types text into the target image region.- Parameters:
pathToTargetElementImage- path to the target element reference imagetext- text to type- Returns:
- self reference for chaining
-
type
Types text into the target image region.- Parameters:
targetElement- target element reference image bytestext- text to type- Returns:
- self reference for chaining
-
typeAppend
Appends text into the target image region.- Parameters:
pathToTargetElementImage- path to the target element reference imagetext- text to append- Returns:
- self reference for chaining
-
typeAppend
Appends text into the target image region.- Parameters:
targetElement- target element reference image bytestext- text to append- Returns:
- self reference for chaining
-
typeSecure
Types sensitive text into the target image region.- Parameters:
pathToTargetElementImage- path to the target element reference imagetext- sensitive text to type- Returns:
- self reference for chaining
-
typeSecure
Types sensitive text into the target image region.- Parameters:
targetElement- target element reference image bytestext- sensitive text to type- Returns:
- self reference for chaining
-
getText
-
getText
Reads text from the target image region.- Parameters:
targetElement- target element reference image bytes- Returns:
- extracted text
-
hover
Moves the mouse over the target image.- Parameters:
pathToTargetElementImage- path to the target element reference image- Returns:
- self reference for chaining
-
hover
Moves the mouse over the target image.- Parameters:
targetElement- target element reference image bytes- Returns:
- self reference for chaining
-
doubleClick
Double-clicks the target image.- Parameters:
pathToTargetElementImage- path to the target element reference image- Returns:
- self reference for chaining
-
doubleClick
Double-clicks the target image.- Parameters:
targetElement- target element reference image bytes- Returns:
- self reference for chaining
-
rightClick
Right-clicks the target image.- Parameters:
pathToTargetElementImage- path to the target element reference image- Returns:
- self reference for chaining
-
rightClick
Right-clicks the target image.- Parameters:
targetElement- target element reference image bytes- Returns:
- self reference for chaining
-
dragAndDrop
public SHAFT.GUI.SikuliX.SikuliActions dragAndDrop(String pathToDraggableElementImage, String pathToTargetElementImage) Drags one target image to another target image.- Parameters:
pathToDraggableElementImage- path to the source reference imagepathToTargetElementImage- path to the target reference image- Returns:
- self reference for chaining
-
dragAndDrop
Drags one target image to another target image.- Parameters:
draggableElement- source reference image bytestargetElement- target reference image bytes- Returns:
- self reference for chaining
-