web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Power Automate Desktop...
Power Automate
Answered

Power Automate Desktop- Custom selector

(0) ShareShare
ReportReport
Posted on by 29

Hi the,

I am fairly new to PAD, any help would be appreciated.

I am trying to build a custom selector for web and I am stuck.
HTML:

<div class="a"

  <div class="target">1</div>
   <div class="to click parent">
       <div class="toclick-child">
            <h class="htag inside -toclick-child">
                      <a class= "this anchor tag should be clicked"></a>
       </div>
  </div>
</div> 

here my content in target class content is dynamic- i have store it as a variable-agent
and I am running a loop from 1 to 10
each time agent gets increamented

How Do I click anchor tag--based on the agent count?
first it should click the anchor tag where the div target is 1
and 2, 3 ....

Any help is much appreciated!

Best
Mohd

  • Verified answer
    VishnuReddy1997 Profile Picture
    2,666 Super User 2026 Season 1 on at

    Hi @mohammed_24 ,

     

    Please try this.

    In each iteration of the loop, build a custom selector that targets the specific div based on the current agent count. You can use the :contains pseudo-class in your selector to target the div that contains the current agent count. For example, your selector might look something like this:

     

    CSS:

    div.target:contains('"+agent+"') ~ div > div > h > a

     

    (Note:- if you got your solution you can mark as solution and gives kudos)


    Thanks & Regards

    Vishnu Reddy

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 424

#2
11manish Profile Picture

11manish 328 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard