Issue with Clicking Tabs on Different Links in UiPath

Hi everyone,

I have an Excel file with many links. I need UiPath to open each link and click all the tabs on the page. It works for the first link, but for the second, which has fewer tabs, UiPath fails to click them.

I added the following activities:

*For Each UI Element: Indicated all the tabs.
Click: To click on all the tabs.

I think the issue is with the selectors. How can I make them dynamic to handle pages with different numbers of tabs?

Thanks for your help!

@Aakash_Sharma3

  • Use Find Children Activity:
  • This activity helps you dynamically find all tabs on a page, even if their number changes.
  • Set the filter to match tab elements, e.g., <webctrl tag='A' /> or <webctrl tag='LI' />.
  • Use a For Each Loop:
  • After finding the tabs, loop through the collection of tab elements returned by Find Children.
  • For each tab, use the Click activity to click it.
  • Flexible Selectors:
  • Use wildcard selectors (e.g., <webctrl tag='A' aaname='*' />) to match any tab, regardless of its name or number.
  • Wait for Page to Load:
  • Use a Wait For Element or Delay after clicking each tab to ensure the content of the new tab has loaded.
  • Workflow Example:
  • Find Children → Get all tab elements.
  • For Each → Loop through each tab.
  • Click → Click each tab.
  • Wait → Wait for the content to load.

Thank you for replying.

While using the “Find Children” activity, it successfully selects all the tabs. However, when I run the process, it does not click on any tab.
Earlier, I faced the same issue where I couldn’t click on the tabs because I was selecting all of them at once. When I selected each tab individually, it was able to click on every tab without any issue.