How to select all links on google page

Hey everyone, I need a help in selecting all the links on google page.

I am inserting a data it redirects me to google page I want to click on each web page URL until the last page of google. I am using Foreach UI elements but not working for me.

I need help in two things, one is that how can I click on each link and second is that when the previous websites redirects me to google page UiPath unable to recognize the elements on the new windows and redirects me back to the previous website. Attaching some of the screenshots of my problem for more clarity.

Thank you for your time.


page

Hi,

In this case, ForEachUiElement will help you as you expected.

UiPath unable to recognize the elements on the new windows and redirects me back to the previous website

It might be necessary to modify selector for new Window or attach new window using other UseBrowser activity.

Regards,

1 Like

@Muhammad_Anas_Baloch

  1. After redirect…change your attach window to new window …may be the url field or something is wrong in the use application browser that is the reason it might go to previous page
  2. For each ui element should work…it also might be faili g because of wrong window…alternately you can use table extraction as well to extract all the urls in to a table at once and then use go to url or navigate url activities to navigate to the required url from the extracted table instead of trying to click

Hope this helps

Cheers

1 Like