php-webdriver
php-webdriver copied to clipboard
Events
CompatBuster:
-
$this->curlno 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+.