I have list of numbers in an excel sheet and I’m using a foreach loop to read each number from the excel, go to particular website and get the corresponding registration number. I have used the click element to get it. However, it keeps throwing the below error -
Message: Could not find the UI element corresponding to this selector:
The closest matches found are:
[95%] webctrl aaname=‘01179331. opens in a new window’ name=‘false’ parentid=‘who-is-this-details-content’ tag=‘A’/
[86%] webctrl aaname=‘www.russellscanlan.comwww dot russellscanlan dot com. opens in a new window’ name=‘false’ parentid=‘who-is-this-details-content’ tag=‘A’/
I did make changes to aaname and changed it to ‘*.opens in a new window’. However, it is now printing the second closest match instead of the first.
How do I get the first closest match?