atata-framework / atata

C#/.NET test automation framework for web
https://atata.io
Apache License 2.0
490 stars 80 forks source link

Composite XPath query of `FindByLabelStrategy` doesn't take into account `IdXPathForLabelAttribute` #807

Closed YevgeniyShunevych closed 8 months ago

YevgeniyShunevych commented 8 months ago

The bug was introduced in Atata v2.7.0 by issue https://github.com/atata-framework/atata/issues/739.

For a fix just don't use composite XPath query if component metadata contains IdXPathForLabelAttribute, but use old regular 2-step algorithm.