You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm testing a web application that uses web components. When trying to get the text of a web component element, e.g. a custom button, I always get an empty string in firefox. Chrome works without problem.
muhqu
changed the title
[🐛 Bug]: Element.getText() returns empty string for Web Component with shadow dom
[🐛 Bug]: Element.getText() returns empty string for Web Component on Firefox
Oct 6, 2023
Have you read the Contributing Guidelines on issues?
WebdriverIO Version
8.16.20
Node.js Version
v18.17.1
Mode
Standalone Mode
Which capabilities are you using?
What happened?
I'm testing a web application that uses web components. When trying to get the text of a web component element, e.g. a custom button, I always get an empty string in firefox. Chrome works without problem.
See https://opensource.adobe.com/spectrum-web-components/storybook/iframe.html?id=button-primary-fill-sizes--m&args=&viewMode=story for an example Web Component.
What is your expected behavior?
No response
How to reproduce the bug.
To reproduce the bug, create a file with the following code:
Then run:
Relevant log output
Code of Conduct
Is there an existing issue for this?
The text was updated successfully, but these errors were encountered: