Skip to content

Conversation

@mvorisek
Copy link
Contributor

#110 support is not working with Selenium 2.x as it does support only the legacy key.

Selenium 3.x is supporting both exclusively but also both together. Although Selenium 2.x does not support the W3C key, it does still acept both together.

I have no environment with the new Selenium 4.x by hand, but Selenium 2.x and 3.x accept the serialized element even when there is any other key present, thus I am quite confident Selenium 4.x will support also this compatibility solution with both keys passed.

This is a bugfix, please tag a new release once merged.

// Potential compat-buster, i.e., W3C-specific
if ($value instanceof Element) {
$arguments[$key] = [Container::WEBDRIVER_ELEMENT_ID => $value->getID()];
// preferably we want to detect W3C support and never set nor parse
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is W3C support somehow reported & nicely detectable?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was a w3c flag at one point but only on master. I'll need to revisit.

@robocoder robocoder merged commit c893a53 into instaclick:1.x Apr 19, 2022
@robocoder
Copy link
Member

Tagged. Thanks again!

@mvorisek mvorisek deleted the sel2_serialization_compat branch April 19, 2022 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants