cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jkasavan11
Regular Visitor

Power Automate Desktop login to website that has Dynamic URL

I am working on a Power Automate that logs into a website, but the URL includes a request ID tracker/token that changes each time that website is activated. So the UI element I am trying to select is getting an error, because, in the flow, the URL that is linked to UI element I want has a previous request ID. So - with Browser Automation > Get Details of Web Page I can get Web browser's current URL address in the variable WebPageProperty. Now I can't figure out how to reference the text field I want to fill out using the current URL address rather than the stale URL address from when I was initially creating this flow. Have not really seen this explained in my Google searches. I was able to use Text functions to make a variable that incorporates the fresh requestID into a variable. Now I don't understand how to create a selector that uses that variable to tell PAD to input text into the field. This screen shows the dialog box for "Populate text field on web page". I just don't see how to modify this to change the UI element to something like FreshWebPage <input:email> 'user[email]' Any thoughts? 

 

jkasavan11_0-1656977577162.png

 

 

3 REPLIES 3
VJR
Super User
Super User

Hi @jkasavan11 

If I understood your post correctly you have everything else and are looking to dynamically change the selectors.

If so do take a look here on how to modify and even add variables in selectors

https://powerusers.microsoft.com/t5/Power-Automate-Desktop/Dynamic-Selector-variable-in-selector-in-...

 

jkasavan11
Regular Visitor

I could not modify the UI element with variables in the way I wanted to - so it ended up working by customizing the selector and truncating the web page name and then looking for the necessary tag for the input field. Populate text field on web page "Computer > Web Page 'https://xxxx.yyyy.zzz/' > <input:email> 'user[email]'" Text: %Username%

Thanks @jkasavan11. This is very useful and clever workaround. Only downside is that we must add all required UI elements to "Web Page 'https://xxx.yyyy.zzz/'" in one go as new elements won't be added to renamed Web Page subsequently.

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,288)