I created an automation for extracting website data. However If I want the bot to click on particular selector it moves up & down if we refresh the web page.
Example - the bot should click on Shoes, if shoes comes in second line intead of first it is clicking boot.
Is there any way to fix it & click on particular selector as per requirement ?
->Use the click activity and then indicate shoe element in the web page and after selecting the element please change the selector to the strict and disable the fuzzy selector by using the popup which is present in the right side while indicating the element.
->In the strict selector please select the attribute which contains the data like shoe.
->Store the data that you want to click in a variable using an assign activity and please pass that variable into the click activity using the strict selector and then remove the idx attributes if present any.
You should be building dynamic selector for this. Use Ui Explorer and find some attributes which are constant or stable of the Ui Element you can to click. If minor things are changing use ? for replacing single character and * for one or more appropriately.