Examples in https://www.patternfly.org/v4/documentation/react/components/ use Shadow DOM. Tests in https://github.com/RedHatQE/widgetastic.patternfly4 failed because Selenium doesn't support Shadow DOM yet.
Hey @redallen making you aware of this one
Hi @quarckster, would it be possible to access the element as described in this article?
https://medium.com/rate-engineering/a-guide-to-working-with-shadow-dom-using-selenium-b124992559f
I could also think of passing a URL attribute that turns off shadow dom
@jschuler that could make things much easier!
@quarckster I was wondering if the OUIA attribute is assigned to the outer container, assuming one shadow dom per component, we could easily access the innards
@psav I don't think so because shadow host != component root.
That's a shame :)
@quarckster Would you be able to append ?shadow=false to every link on the page?
Yes, that will work I just need to change that line https://github.com/RedHatQE/widgetastic.patternfly4/blob/master/testing/conftest.py#L38
@quarckster this change is in staging now.
https://staging.patternfly.org/v4/documentation/react/components/alert/?shadow=false
Let me know if this doesn't work for you.
@jschuler Thanks. It works!
@redallen @jschuler can you please tell when the changes will go https://patternfly.org?
@quarckster It's been promoted now.