Object SimpleCommandDispatcher.Companion
-
- All Implemented Interfaces:
public class SimpleCommandDispatcher.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static SimpleCommandDispatcher.CompanionINSTANCE
-
Method Summary
-
-
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.
-
-
-
-