Patternfly-react: PF4: Shadow DOM breaks selenium tests

Created on 24 Jun 2019  路  13Comments  路  Source: patternfly/patternfly-react

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.

PF4 bug

All 13 comments

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?

@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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

priley86 picture priley86  路  3Comments

mcarrano picture mcarrano  路  4Comments

laviro picture laviro  路  7Comments

SpyTec picture SpyTec  路  3Comments

Hyperkid123 picture Hyperkid123  路  6Comments