php-webdriver icon indicating copy to clipboard operation
php-webdriver copied to clipboard

Events

Open robocoder opened this issue 2 years ago • 0 comments

CompatBuster:

  • $this->curl no longer prefixes the command with a leading slash, e.g., '/status'

Features:

  • Dispatches before/after/error events for each WebDriver command

Sample Before Event:

{
    "event": "before",
    "command": "webdriver_command",
    "parameters": []
}

Sample After Event:

    "event": "after",
    "command": "webdriver_command",
    "result": { ... }

Sample Error Event:

{
    "event": "error",
    "command": "webdriver_command",
    "error", "WebDriverExceptionClassName"
}

This PR is dependent on #129, and requires PHP 7.2+.

robocoder avatar Dec 09 '23 19:12 robocoder