webpage with a list of authors and associated contact icons, such as mail icons, next to their names. Your goal is to programmatically identify and click on the names of authors who have a mail icon beside their names. However, some authors may not have any icons, while others may have different icons that are not relevant (e.g., icons for social media or website links).
We can accomplish this using the For Each UI Element activity. Follow the steps below. They might seem a bit confusing, but follow them carefully
→ Drag and drop the For each Ui element activity and indicate on any one of the author then it will automatically extracts all author information, check the below image,
→ Then click on confirm in the CurrentElement option in the For each Ui element window.
→ Then click on Add label option in the same window.
→ Then indicate on the mail icon for which author it has, then it automatically extracts all the mail icons for authors who have. Check the below image,
→ Click on Confirm in the CurrentLabel_1 option.
→ Then click on save&Close option in the same window.
→ The output of For each Ui element activity is CurrentElement and CurrentLabel_1
→ Come back to the Studio inside for each Ui element activity insert the if condition and give the below condition,