if you see in the above picture aaname varies when trying to click is failing because of & in the picture.
have a check
- how innertext attribute is handling it
- if wildcard / Regex selector will serve
Try this:
<webctrl tag='SPAN' aaname='aprepitant oral 80 &|&\s 125 mg' casesensitive:aaname='false' matching:aaname='regex' />
Duplicate
cheers