-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert element to object from execute result #110
Conversation
Thanks for the PR. This looks like a compat-buster on the 1.x branch since php-webdriver has historically been a (largely) thin wrapper around the W3C and legacy WebDriver protocols. Can you provide an example of the method call that demonstrates (args and return value) why this is needed? |
Yes, it is supported offcially, see facebook impl. https://github.com/php-webdriver/php-webdriver/blob/8ffa927b270e932449e8015abf4d38bb0eff24b7/lib/Remote/RemoteWebDriver.php#L666 My question is, can this PR target 1.x? LOC will be low, no BC break. |
Example usage:
|
Thanks for fleshing that out. |
Thanks. This has been tagged as 1.4.12. I'll try to port to the master branch later tonight. |
See 8bb204d |
Thank you ❤️ |
Session::execute
andSession::execute_async
methods must convert the web driver element to object the same way asContainer::element
andContainer::elements
methods do.