Object SimpleCommandDispatcher.Companion

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Triple<String, String, List<String>> parseSimpleFunctionCall(String input) Parses a function call from a text string into its components.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • parseSimpleFunctionCall

         final Triple<String, String, List<String>> parseSimpleFunctionCall(String input)

        Parses a function call from a text string into its components.

        Extracts the object name, function name, and argument list from a function call string. Handles various formats of function calls, including with and without quotes.

        Supported formats:

        • Standard: driver.method("arg1", "arg2")

        • Single quotes: driver.method('arg1', 'arg2')

        • No quotes: driver.method(arg1, arg2)

        • Trailing comma: driver.method(arg1, arg2, )

        Examples:

        driver.open("https://example.com")
        driver.navigateTo("https://example.com")
        driver.scrollToMiddle(0.4)
        driver.mouseWheelUp(2, 200, 200)
        Parameters:
        input - The function call string to parse.
        Returns:

        A triple containing (objectName, functionName, argumentList), or null if the input is not a valid function call.