How to click on each dynamic element when the selector ID is always the same

Hello, I am trying to build a bot which will download files from this website - https://pixabay.com/videos/
The plan is to click on each video element and then click on the download button. For this I thought I would loop through each element and modify the selector to identify each element.

I initially tried data scraping to identify each element, but the elements have same selector, I can’t find any unique ID or similar value that increases for each element. How can I click on each element? I have tried various option in UiExplorer but was unable to find it. Please can someone help?

Regards,
R

@bokapakhi

For dynamic selectors you need to make selector dynamically to work,

Check the selector where it is changing, if it is changing idx=1 or 2 like that then you can replace with using a counter to increament to change

Hope this helps

Thanks

Hi @bokapakhi

Your issue is solved now.
I have created the complete workflow that you want.
Just run it and let me know if it works for you too or not.
Main.xaml (135.3 KB)
project.json (1011 Bytes)

Actually der was much more complications & it was much tricky too.
But atlast the process got automate.

Hope this may help to solve your issue
Mark as solution if this helps you and like it :innocent:

Happy Automation :raised_hands:

Best Regards
Er Pratik Wavhal

Concepts you may learn from this process automation :-

  1. Pageup Pagedown Hotkey
  2. Data Scrapping
  3. For Each loop
  4. Regular Expressions
  5. Try Catch within Try Catch Exception
  6. Dynamic Selectors plays the main role in this workflow
  7. When to use Click Image Activity & When to use Click Activity
  8. Role of Index in looping

Hope this workflow may help you to solve your issue
Mark as solution if this helps you and like it :innocent:

Happy Automation :raised_hands:

Best Regards
Er Pratik Wavhal :robot::man_technologist:t4: :computer:

Hi @bokapakhi

I have sent you the complete ready workflow which is working 100% correctly.
Even you dont have to do any extra editing.

Just run it once and you will get the output.

Mark this as solution & Like it :innocent:

Happy Automation :raised_hands:

Best Regards
Er Pratik Wavhal :robot::man_technologist:t4: :computer:

Hi Pratik, Thank you ever so much for your help. Sorry for the delay in replying.

I am trying to understand what you did - In the beginning where “Extract Structured Data” is used, what is the robot extracting?

It is not finding the image in one of the click image activity but I will fix that. Thanks again, really appreciate.

Hi @bokapakhi

You are always welcome.
Glad that helped you.

So your que is this


Ans for that is this
image

As you also know that it was difficult to get the unique thing within that website which will go through each img to click it. So first i extracted that data which is der below for every video and made the selector dynamic on the same basis of data and then it start working.

Hope you got what i am trying to say.

Happy Automation :raised_hands:

Best Regards
Er Pratik Wavhal :robot::man_technologist:t4: :computer:

Thanks @Pratik_Wavhal

Hi @bokapakhi

Cheers
You are Welcome

Happy Automation :raised_hands:

Best Regards
Er Pratik Wavhal :robot::man_technologist:t4: :computer:

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