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 / web site url needs to ...
Power Automate
Answered

web site url needs to be more generic for UI elements

(0) ShareShare
ReportReport
Posted on by 225

I have captured some UI elements from a web page. That web page has a specific URL, of the form (in my case) of:

 

https://myurl.com/mycompany/application/home

 

This web page and its elements are specific to that URL. However, the elements are generic to all of the pages, not just /home (things like menu expand, menu contract, search, add buttons). And even the elements are generic to all companies, not just the one named mycompany. So, I need to make this more generic - either find a way to use an asterisk in place of mycompany or home. Worst case, I have the company name in a variable. However, in PAD, I see no way to edit the web page address of a UI element - only the things in the dom that define the element.

 

Is there any way to do this?

  • Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

    Can you show an image of one of your selectors?

  • Pavel_NaNoi Profile Picture
    1,074 on at

    Have you tried editing the main container of the UI Elements?

    Pavel_NaNoi_0-1664377660046.png

     

  • LogicSmith Profile Picture
    225 on at

    From the UI elements list:

    LogicSmith_0-1664377829189.png

    If I double-click on the Web Page item, I get this:

    LogicSmith_1-1664377948374.png

    The URL here is the one I need to make generic, so I can trigger the Menu Expand on any page, for instance. I assume I could add a second selector with different company name, but there could be hundreds of companies. So I added a second selector, which just says Web Page with no URL listed. Maybe then I could make it the default and delete the original one?

  • Pavel_NaNoi Profile Picture
    1,074 on at

    Oh if you just have a container selector thats something like desktop > dormcontainer, then I'm fairly certain you just need to make the selectors in the container more generic i.e. not use the first few selector boxes that include the URL rather than bother with the actual container URL, as it doesn't care for the URL, its just using the browser instance.

     

    If that's not the case, give me some example websites that I can take a look at and I'll get back to you about it.

  • LogicSmith Profile Picture
    225 on at

    When I do the initial capture of the web page element, it adds the URL to the web page portion of the element. So, that element won't work if shown on another page. But if I then capture a second selector for that web page, it does not add the URL. So, I just capture the second selector, and disable the original selector. Then it seems like it can find the element even on multiple pages. I'm still playing with it, so when 100% sure, I'll annotate this post and close it.

     

  • Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

    Can you share the full selector builder window?

  • LogicSmith Profile Picture
    225 on at

    LogicSmith_0-1664542875576.png

    This was the original window selector. Note that it includes a URL. I then added a second capture, which only says Web Page... 

    LogicSmith_1-1664542976899.png

    If I disable the original window selector and add the generic Web Page, PAD can find the UI elements no matter what the URL is. Since the URL changes based on which company I am dealing with, I need this generic ability.

     

    Note that this has nothing to do with the element part of the UI element - only the window part.

  • Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

    You are editing a Web Page element. These should never* be opened.

     

    You can move your UI elements between your pages by dragging on the three-dot menu. The name of the Web Page element never has any technical function - it is only a name.

     

    *There might be some circumstance that I am not aware of...

  • LogicSmith Profile Picture
    225 on at

    The name is not the issue. The issue is: When you first capture a web UI element, it includes the web page URL in the window descriptor. So, elements captured on this page will not work on another page with a different URL, even though they are the same in the DOM. That's because the window descriptor is linked to the URL. Since this URL cannot be edited, the only workaround I've found is to capture a second selector, which does not get the URL, and deactivate the original selector that has the URL.

  • Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

    Which window descriptor?

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 227 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 132

Last 30 days Overall leaderboard