Class SHAFT.GUI.SikuliX
java.lang.Object
com.shaft.driver.SHAFT.GUI.SikuliX
- Enclosing class:
SHAFT.GUI
Entry point for optional SikuliX image-based desktop automation.
Add io.github.shafthq:shaft-sikulix to the project before
creating this class. Without that optional module SHAFT throws a
dependency-specific error instead of a generic class loading failure.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classReflection-backed wrapper for optional SikuliX element actions. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionelement()Returns a SikuliX action facade.Returns the native SikuliX app handle, ornullfor screen-only actions.static SHAFT.GUI.SikuliXgetInstance(String applicationName) Creates a SikuliX driver attached to an opened desktop application window.voidquit()Closes the attached desktop application window.
-
Constructor Details
-
SikuliX
public SikuliX()Creates SikuliX actions for the current desktop screen.- Throws:
IllegalStateException- whenshaft-sikulixis missing
-
SikuliX
Attaches to an opened desktop application window by name or partial name.- Parameters:
applicationName- name or partial name of the target application window- Throws:
IllegalStateException- whenshaft-sikulixis missing
-
-
Method Details
-
getInstance
Creates a SikuliX driver attached to an opened desktop application window.- Parameters:
applicationName- name or partial name of the target application window- Returns:
- a SikuliX driver facade
-
quit
public void quit()Closes the attached desktop application window. -
element
Returns a SikuliX action facade.- Returns:
- SikuliX action facade
-
getDriver
Returns the native SikuliX app handle, ornullfor screen-only actions.- Returns:
- native SikuliX app handle
-