An Extra Space Between The * Wildcard And The Ending Tag Is Required To Validate A Selector

Why is it required to add an extra space after the * wildcard to validate a selector?

Issue Description:

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.