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 / how to click a link in...
Power Automate
Answered

how to click a link in a table on a webpage only if the row has a specific value

(0) ShareShare
ReportReport
Posted on by 2

Hi, I am trying to click a link conditionally. the bot should only click the link if the row item contains a certain value. For example if the Type column contains "WI3" then the bot should click maginifying glass icon, should skip the row and move to next if any thing else like "WI2" or "WI1". Can someone please help me with the same

clinton572_0-1682356936407.png

 

I have the same question (0)
  • Verified answer
    Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @clinton572 

     

    You have to try this jquery selector 

    Nived_Nambiar_0-1682392138604.png

     

    Here %i% is a index variable created from PAD which is made to run on a loop like below

     

    Nived_Nambiar_1-1682392172895.png

     

     

    However, i would recommend the below method of using datascrapping to extract all details including link of the magnifying glass button and navigate through each link

    Nived_Nambiar_2-1682392453594.png

     

    Here you can specify next page element so that bot can move through all pages and then you can easily navigate through 🙂

     

    Hope this helps 

    Mark it as solution if it resolves your query 🙂

     

  • wheneverdisorie Profile Picture
    2 on at

    Hello @Nived_Nambiar ,

     

    Thank you for your solution above. I wanted to follow up on a similar problem. I need to click a magnifying glass in a table on a webpage as well, but only if the value matches the current date. Unfortunately, I tried scraping the data but the link is not a link that can be scraped. I used the jQuery selector you showed above but instead I made the query as so: table[class="table"]tr:has(td:contains(%FormattedDateTime%)):eq(%CurrentItem%) td a button

     

    I use the current item to go through a loop to go through each row in the web page to see if it contains the current date but it seems to not click on any even if they match the current date. Could you help with this?

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 245

#2
David_MA Profile Picture

David_MA 216 Super User 2026 Season 1

#3
Valantis Profile Picture

Valantis 212

Last 30 days Overall leaderboard