Why is it required to add an extra space after the * wildcard to validate a selector?
There is a process error in which the Robot is unable to identify a selector that uses:
- <webctrl aaname='*April 2023*'/>
but works with an extra space between the * wildcard and the ending tag:
- <webctrl aaname='*April 2023* '/>
Root Cause: The first pattern (without the space) is less restrictive and it probably matches a different intermediary node. Then the final tag is not found in the subtree that starts from the intermediary matched node. The search is greedy so no further candidates are considered for the intermediary node.
- Add idx='*' to the intermediary tag.