How to click on moving selector?

Hi Team

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 ?

Best Regards
Naman

Hi @Naman_Arora

->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.

Regards

@Naman_Arora,

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.

Thanks,
Ashok :slight_smile:

@Naman_Arora

  1. Open Browser (Open your target webpage)
  2. Anchor Base
    a. Anchor - Find Element (Choose a nearby stable element)
    b. Drop Action - Click (Indicate the “Shoes” element)
    or

Fine-Tuning the Selector

  1. Indicate the Element:
  • Use the Click activity to select “Shoes”.
  1. Edit Selector:
  • Right-click the Click activity, select Edit Selector.
  • Modify the selector to use attributes like innerText='Shoes'

Your selector isn’t right. Show us your selector.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.