Class SikuliDriver
java.lang.Object
com.shaft.sikulix.SikuliDriver
Driver wrapper for attaching SHAFT SikuliX actions to a desktop application window.
-
Constructor Summary
ConstructorsConstructorDescriptionSikuliDriver(String applicationName) Attaches to an opened desktop application window by name or partial name. -
Method Summary
Modifier and TypeMethodDescriptionelement()Creates a SHAFT SikuliX element action facade scoped to the attached application.org.sikuli.script.AppReturns the native SikuliX app handle.static SikuliDrivergetInstance(String applicationName) Creates a SikuliX driver attached to an opened desktop application window.voidquit()Closes the attached desktop application window.
-
Constructor Details
-
SikuliDriver
Attaches to an opened desktop application window by name or partial name.- Parameters:
applicationName- name or partial name of the target application window
-
-
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 instance
-
quit
public void quit()Closes the attached desktop application window. -
element
Creates a SHAFT SikuliX element action facade scoped to the attached application.- Returns:
- SikuliX action facade
-
getDriver
public org.sikuli.script.App getDriver()Returns the native SikuliX app handle.- Returns:
- SikuliX app handle
-