-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
getText returns '' for content in shadowRoot #1417
Comments
This could be related to Chrome having a different shadow DOM implementation than Firefox, but it’s really very hard to tell. In theory, Chrome and Firefox should have the same In principle, shadow DOM is not supported in WebDriver so I’m somewhat inclined to say this currently unspecified behaviour. See w3c/webdriver#1320 for a larger discussion on handling shadow DOM in WebDriver. |
I don't want to unnecessarily bother people but maybe this is a bug in Firefox itself and I should be posting something to bugzilla.mozilla.org? After all the shadow DOM implementation is still very new, if geckodriver vs chromedriver don't handle |
It seems like this behavior has changed since I posted this bug. It seems like now Is this the result of an intentional fix or is this a 'bug in my favor'? |
System
Testcase
When testing this page with chromedriver
getText
ontest2
returns 'shadow', geckodriver returns '' (blank string) for the same.Trace-level log
I'm unable to obtain this. I'm using node.js to run tests. Although node.js geckodriver is 0.21.0 I manually installed 0.23.0 and verified this is still an issue in the latest release.
The text was updated successfully, but these errors were encountered: