-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Shadow dom elements are not clickable in Safari 10.13.1 #5792
Comments
Please provide concise reproducible test case so that we could act on this issue. See CONTRIBUTING.md |
Cool. First, ensure you have an extension installed that uses the shadow DOM on safari. I've used Honey : https://safari-extensions.apple.com/details/?id=forge.safari.honey985c8d42048c4cbeb0bed522bd235ee7-4NREU46PA6 You may need to show shadow DOM nodes before running this as well. To do that, refer to this: https://stackoverflow.com/questions/43270022/does-ios-safari-support-shadow-dom/43270104
We are seeing this interaction throw an unknown server side error. Please let me know if you see the same |
@davidchunhoney Thank you for test case. I've installed Honey extension but I don't see it popping up after I visit shadow_root = driver.execute_script('return document.querySelector("#honeyContainer")')
=> nil Do you know how to pop it up or maybe you have a different example to try? |
@p0deje that's odd. Another instance of it popping up automatically should be |
@davidchunhoney Thank you, I can now reproduce the problem. According to the output, Selenium sends a correct request to SafariDriver and something goes wrong inside it:
I've also tried to test a "normal" shadow DOM assuming Safari extensions have special APIs or permissions and attempts to click elements inside shadow root don't fail with such an error (though they do fail with element visibility checks). In any event, since this happens somewhere inside SafariDriver and there is no way to get the logs from it for further debugging, I'll have to ask to post this bug to Apple bugtracker. Let's keep this issue open for other people facing this problem. // cc @burg as one of SafariDriver developers |
If anyone is interested, all of www.ea.com is using Polymer, so it has Shadow DOM throughout. We're encountering this error as well in Safari. |
Hi folks, is there a test case that doesn't require installing extensions? |
We're using the Page Object model.
And we have a shadow dom custom command that's attached to the browser object.
|
The W3C specification does not currently provide a way to find elements within a shadow root. Exposing shadow roots to normal Find Element command is not going to work. I don't think this is fixable until we have resolution in the spec. |
FYI There is a proposal to add Shadow DOM to spec: w3c/webdriver#1320 |
Did this ever work or any work around for this? I am facing the same issue. I implemented the Shadow DOM using Java script executor and works perfectly fine in chrome, but does not work in Safari. It just doesn't click the element in Safari. |
The last update was in May, and I haven't heard anything since. I will add Shadow DOM to the agenda for the next W3C working group meeting. I think there are several decent options on the table for standardization. However, many people normally involved with standardizing WebDriver have not had the bandwidth to spec & implement one of the options.
… On Aug 25, 2020, at 1:59 PM, msn-pixel ***@***.*** ***@***.***>> wrote:
Did this ever work or any work around for this? I am facing the same issue. I implemented the Shadow DOM using Java script executor and works perfectly fine in chrome, but does not work in Safari. It just doesn't click the element in Safari.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#5792 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAARIGHNRY6XUFW6HPD4JP3SCQQZNANCNFSM4E3E6PHA>.
|
@burg is there already an update for this issue or do you have an idea when you expect it? I bump into the issue below when I click an element inside shadow DOM, but it is probably related:
|
Shadow DOM is now part of the spec, but some time will pass until all browser vendors have implemented it. I will close this issue just to consolidate all Shadow DOM issues into #5869 |
Meta -
OS: OSX
Selenium Version: 3.8.1
Browser: Safari
Browser Version: 10.13.1
Expected Behavior - Allow clicking of buttons in extensions using shadow DOM on Safari (10+)
Actual Behavior - Upon grabbing a shadow dom element and attempting to click, the follow error message is presented: An unknown server side error occurred while processing the command.
Steps to reproduce -
<element>.click()
The text was updated successfully, but these errors were encountered: