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 / What is the solution f...
Power Automate
Unanswered

What is the solution for resolving the failure to find UI elements on a web page?

(0) ShareShare
ReportReport
Posted on by 6

Hello. I am posting this message because I encountered a problem while writing a UI test automation script using Power Automate.

I have created a simple script to retrieve UI details from a web page. When I write and execute the script, it successfully retrieves the UI details. However, if I close the web browser and reopen it to execute the script again, I encounter cases where the UI elements cannot be found.

I would greatly appreciate it if you could provide a solution to this issue.

Additionally, if anyone is familiar with how to retrieve UI element information using the Power Automate program, I would be grateful for your guidance.

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

    This happens when the elements in question have some sort of property values that are related to the current browser/user session. You need to inspect your selectors and remove any possible property values that change when you recapture the same element in a new browser session. See here for more reference on modifying selectors: https://learn.microsoft.com/en-us/power-automate/desktop-flows/build-custom-selectors

    -------------------------------------------------------------------------

    If I have answered your question, please mark it as the preferred solution.

    If you like my response, please give it a Thumbs Up.

    If you are interested in Power Automate, you might want to follow me on LinkedIn at https://www.linkedin.com/in/agnius-bartninkas/

     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 378

#2
Valantis Profile Picture

Valantis 329

#3
David_MA Profile Picture

David_MA 283 Super User 2026 Season 1

Last 30 days Overall leaderboard