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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard