Class SimpleCommandDispatcher
-
- All Implemented Interfaces:
public final class SimpleCommandDispatcherDispatches web driver commands in text format.
This class is responsible for parsing and executing WebDriver commands provided as strings. It converts these string-based commands into executable actions.
Vincent Zhang
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classSimpleCommandDispatcher.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static SimpleCommandDispatcher.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description SimpleCommandDispatcher()
-
Method Summary
-
-
Method Detail
-
execute
final Object execute(String command, WebDriver driver)
Dispatches a WebDriver command in text format.
This method takes a string that describes how to invoke a function and returns the actual executable action. For example, the command "driver.open('https://t.tt/')" will be parsed and executed accordingly.
- Parameters:
command- The command in text format.driver- The WebDriver instance to execute the command on.
-
-
-
-