We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 623eb02 commit b5b18bdCopy full SHA for b5b18bd
lib/WebDriver/Session.php
@@ -476,7 +476,13 @@ private function serializeArguments(array $arguments)
476
foreach ($arguments as $key => $value) {
477
// Potential compat-buster, i.e., W3C-specific
478
if ($value instanceof Element) {
479
- $arguments[$key] = [Container::WEBDRIVER_ELEMENT_ID => $value->getID()];
+ // preferably we want to detect W3C support and never set nor parse
480
+ // LEGACY_ELEMENT_ID, until detection is implemented, serialize to both
481
+ // variants, tested with Selenium v2.53.1 and v3.141.59
482
+ $arguments[$key] = [
483
+ Container::WEBDRIVER_ELEMENT_ID => $value->getID(),
484
+ Container::LEGACY_ELEMENT_ID => $value->getID(),
485
+ ];
486
continue;
487
}
488
0 commit comments