Class SikuliDriver

java.lang.Object
com.shaft.sikulix.SikuliDriver

public class SikuliDriver extends Object
Driver wrapper for attaching SHAFT SikuliX actions to a desktop application window.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SikuliDriver(String applicationName)
    Attaches to an opened desktop application window by name or partial name.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates a SHAFT SikuliX element action facade scoped to the attached application.
    org.sikuli.script.App
    Returns the native SikuliX app handle.
    getInstance(String applicationName)
    Creates a SikuliX driver attached to an opened desktop application window.
    void
    Closes the attached desktop application window.

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SikuliDriver

      public SikuliDriver(String applicationName)
      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

      public static SikuliDriver getInstance(String applicationName)
      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

      public SikuliActions 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