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 / UI Element needs to us...
Power Automate
Answered

UI Element needs to use the Browser variable and not hard coded

(0) ShareShare
ReportReport
Posted on by 8

When using the web automation controls, the IP address of the UI Element is hard coded. So if we build a flow for the test environment, we can't migrate to production. We need the UI Elements to honor the browser variable like all the other web controls do.

 

This is a show stopper for us.

  • fraenK Profile Picture
    2,125 on at

    You can always use variables in selectors through the selector builder, also to respect different environments: https://docs.microsoft.com/en-us/power-automate/desktop-flows/ui-elements#element-properties

     

  • VR_Architect1 Profile Picture
    8 on at

    I tried that but it doesn't make sense to me. I pulled up the list of UI Elements, edit the selector and brought up the builder. The selector name is "Web Page 'http://198.172.62.2:10100/web/database". Clicked custom and the value in the box is ":desktop > domcontainer". So how do I replace the IP:Port with a variable I already have defined?

  • fraenK Profile Picture
    2,125 on at

    Just click on the dot menu and rename. It is just a name, the selector is generic for browser.

  • VR_Architect1 Profile Picture
    8 on at

    I know I can change the name of the selector in the master list of UI elements; however, that name does not show as changed in the "Populate text Field on web page" UI Element selector. Also changing the label doesn't address the feature of how to set it to a variable.  Can you point me to a video or web page tutorial?

  • Verified answer
    fraenK Profile Picture
    2,125 on at

    This name doesn't matter, it has nothing to do with which window or UI element you are trying to access. You need the variable only for the run browser session.

    https://docs.microsoft.com/en-us/power-automate/desktop-flows/ui-elements#element-types

    https://docs.microsoft.com/en-us/power-automate/desktop-flows/automation-web

     

  • VR_Architect1 Profile Picture
    8 on at

    Oooohh, gotcha. So basically the IP address is basically an auto-generated label. They really should update the documentation on that part. Thanks for the excellent help and you patience.

  • fraenK Profile Picture
    2,125 on at

    Yes, I agree, it's quite confusing! Especially not ideal is the limitation you were referring to, not being able to fully rename 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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 299

#2
11manish Profile Picture

11manish 274 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard