Skip to content

Commit

Permalink
ouia: use "contains" in xpath locator
Browse files Browse the repository at this point in the history
This allows to make widgetastic.patternfly5 ouia widgets backwards
compatibl with PF4.
  • Loading branch information
jrusz committed Oct 4, 2023
1 parent 4366f0d commit db23833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widgetastic/ouia/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class OUIABase:
"""

ROOT = ParametrizedLocator(
".//*[@data-ouia-component-type={@component_type}{@component_id_suffix}]"
".//*[contains(@data-ouia-component-type,{@component_type}){@component_id_suffix}]"
)
browser: Browser

Expand Down

0 comments on commit db23833

Please sign in to comment.