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 / Clicking button corres...
Power Automate
Answered

Clicking button corresponding to a text in a table

(0) ShareShare
ReportReport
Posted on by 8

In the example, How do I click on the Remove button of a disabled user in power automate.

The disabled user order in the table is random (not always the 1st user)

 

ululj_0-1718237208706.png

 

 

Categories:
  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @ululj 

     

    This question is related to on how we can apply anchoring on selectors to find a UI Element based on other UI Element.

     

    Let me explain with same website

     

    See below

    Assume i want to select Stopping  option corresponding to name as Flat belt.

    Nived_Nambiar_0-1718247045216.png

     

    For this, I have used following selector 

    tr:has(td:contains("Stopped")) td:eq(0)

     

    The explanation of the selector is as follows

    Bot tries to identify the the row-column which has value equals to stopped (td:contains("Stopped")) (jQuery does not support equals, so used contains) and then find the row corresponding to the column value (tr:has(td:contains("Stopped"))) which is equal to Stopped and then find the first column value of that row as that column is child element of the row (td:eq(0))

    The HTML structure for the case was like below

    Nived_Nambiar_1-1718247839228.png

     

    In the same way you have to approach your problem as well 🙂

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

     

  • ululj Profile Picture
    8 on at

    It didn't work for me when i used tr:has(td:contains("Disabled")), it cannot identify the corresponding Remove User button in the same row.

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @ululj 

     

    Could you show the html structure for same ?

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

     

  • ululj Profile Picture
    8 on at

    @Nived_Nambiar Thanks in advance! Here

    ululj_0-1718331647112.png

    i just masked the personal name info

  • Verified answer
    Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @ululj 

     

    try this 

     

    tr:has(td:contains("Disabled")) td input[type="button"]

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

     

  • ululj Profile Picture
    8 on at

    @Nived_Nambiar  Thank you very much! This worked.

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 426

#2
11manish Profile Picture

11manish 308 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 159

Last 30 days Overall leaderboard