2.0.0-RC7
Pre-release
Pre-release
WebDriver: W3C Editor's Draft 1 April 2022
- fix
$element->shadow(): /session/:sessionid/element/:elementid/shadow (POST) - add
$session->getTimeouts(): /session/:sessionId/timeouts (GET) - add
$session->newWindow(): /session/:sessionId/window/new (POST)
Compat Busters
$session->window()on legacy JSON Wire Protocol no longer closes a window; use$session->deleteWindow()instead$session->legacyWindow()from 2.0.0-BETA removed;$session->window()now returns Window or LegacyWindow objects for method chaining$session->execute()and$session->execute_async()wrap both the legacy JSON Wire Protocol and W3C Webdriver Protocol- removed the
$legacyparameter from constructors; this used to be the$w3cproperty from 2.0.0-RC4
Enhancements
- serialize/unserialize elements and shadow roots in
execute()andexecute_async()arguments and return value (@mvorisek)
Refactoring
finalkeyword now only appears on classes that purely houseconsts- renamed
webDriverElement()tomakeElement() - renamed
getElementPath()togetIdentifierPath() - renamed W3C identifier consts , i.e.,
WEBDRIVER_prefix is nowWEB_
Housekeeping
- move boilerplate license to a separate file; compress the
@copyright,@license, and@authortags - update external links in README
- phpdocs, phpstan