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 on correct en...
Power Automate
Unanswered

Clicking on correct entry in search results

(0) ShareShare
ReportReport
Posted on by

My Desktop flow needs to look up specific properties via the https://hpdonline.nyc.gov/ website.  When entering in certain block and lots, there is more than one address result.  I must make sure PAD is clicking on the correct result for the address I'm looking for.  How can PAD tell me where on the page my text is found - in this case "1426 Atlantic Avenue"?  Since I can navigate using key presses, just knowing if it's the first, second, third, etc. result would be enough.

 

Here is an example of a search with more than one result.  (This is a public site, so you can try it yourself.)

Ukiman1014_0-1690387788621.png

Ukiman1014_1-1690387808819.png

 

I have the same question (0)
  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    You can use Extract data from web page to extract the results into a table and then use Find or replace in data table to find which row contains the address you are looking for. 
    I would, however, suggest avoiding keystrokes here and instead use Press button in web page and use the following selector: span:contains("%Address%") where %Address% stores the address you need.

    As you can see, the <span> elements actually contain the address in their value:

    Agnius_0-1690431450643.png

    (this view is from the Chrome developer tools, inspecting the search results).

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • Ukiman1014 Profile Picture
    on at

    Thank you @Agnius!  I didn't get a chance to try to implement what you mentioned until now.  Quick question: if I am clicking on the entry that has the address in the span, is there really any value in figuring out on what row the address is found in the search results?  Seems like I could just do a check to see if the address appears anywhere on the search results web page and, if so, click on the span containing it.  Is that correct?

  • Ukiman1014 Profile Picture
    on at

    @Agnius wrote:

    I would, however, suggest avoiding keystrokes here and instead use Press button in web page and use the following selector: span:contains("%Address%") where %Address% stores the address you need.

    As you can see, the <span> elements actually contain the address in their value:


    @Agnius I can't find a way to do with the press button action.  It seems like I can only select items currently in the browser and I can't edit them to put in the search text you suggested.  What am I missing?

    Ukiman1014_0-1690825525390.png

     

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    You need to add the UI element and then modify its selector. See this article on how to customize a selector and pass a variable value to it: https://learn.microsoft.com/en-us/power-automate/desktop-flows/build-custom-selectors

    Also this video: https://www.youtube.com/watch?v=2PcyBa22Jj8&ab_channel=Thomas%22Shaky%22Petersen

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 247 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 164 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 138 Super User 2026 Season 2

Last 30 days Overall leaderboard