Enum Class ActiveEngine

java.lang.Object
java.lang.Enum<ActiveEngine>
com.shaft.mcp.ActiveEngine
All Implemented Interfaces:
Serializable, Comparable<ActiveEngine>, Constable

public enum ActiveEngine extends Enum<ActiveEngine>
The MCP session's currently active automation engine, tracked by EngineService so engine-dispatching tools (for example element_click) know which underlying implementation to route to. Every unified tool response echoes this value.
  • Nested Class Summary

    Nested classes/interfaces inherited from class Enum

    Enum.EnumDesc<E>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    An Appium native (Android/iOS) session, initialized by driver_initialize with engine=mobile_native and an optional nested mobileOptions request.
    A Chrome/Edge mobile web emulation session, initialized by driver_initialize with engine=mobile_web and an optional nested mobileOptions request.
    No session initialized yet.
    A SHAFT Playwright session, initialized by driver_initialize with engine=playwright.
    A plain Selenium/CDP web browser session, initialized by driver_initialize (default engine).
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    static ActiveEngine[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • NONE

      public static final ActiveEngine NONE
      No session initialized yet.
    • WEB

      public static final ActiveEngine WEB
      A plain Selenium/CDP web browser session, initialized by driver_initialize (default engine).
    • MOBILE_NATIVE

      public static final ActiveEngine MOBILE_NATIVE
      An Appium native (Android/iOS) session, initialized by driver_initialize with engine=mobile_native and an optional nested mobileOptions request.
    • MOBILE_WEB

      public static final ActiveEngine MOBILE_WEB
      A Chrome/Edge mobile web emulation session, initialized by driver_initialize with engine=mobile_web and an optional nested mobileOptions request.
    • PLAYWRIGHT

      public static final ActiveEngine PLAYWRIGHT
      A SHAFT Playwright session, initialized by driver_initialize with engine=playwright.
  • Method Details

    • values

      public static ActiveEngine[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ActiveEngine valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null