Skip to content

2.0.0-RC7

Pre-release
Pre-release
Compare
Choose a tag to compare
@robocoder robocoder released this 15 Apr 19:02
· 26 commits to master since this 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 $legacy parameter from constructors; this used to be the $w3c property from 2.0.0-RC4

Enhancements

  • serialize/unserialize elements and shadow roots in execute() and execute_async() arguments and return value (@mvorisek)

Refactoring

  • final keyword now only appears on classes that purely house consts
  • renamed webDriverElement() to makeElement()
  • renamed getElementPath() to getIdentifierPath()
  • renamed W3C identifier consts , i.e., WEBDRIVER_ prefix is now WEB_

Housekeeping

  • move boilerplate license to a separate file; compress the @copyright, @license, and @author tags
  • update external links in README
  • phpdocs, phpstan