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 Selector - Web Page...
Power Automate
Unanswered

UI Selector - Web Page, changing the UI elements from a test site to a live site (have to rebuild all UI elements just because the URL has changed!)

(0) ShareShare
ReportReport
Posted on by 259

I build my flows on a test version of our website and then run them in a live environment so there are different URLs. However when I do (even though all the IDs of the elements are exactly the same) PAD cannot access the elements and I have to rebuild all the UI elements for the live webpage.

 

I think it is because PAD seems to hone in on the fact that the webpage has a specific URL and I tried to 'repair' it with the live version or be more generic and just change it to "webpage" but it still doesn't work.

 

Can you give me any pointers on this? 


Thanks

 

2023-05-18_8-58-41.png2023-05-18_9-00-52.png

 

I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @beebul 

     

    Could you verify that selector of web elements are same in both websites?

     

     

  • beebul Profile Picture
    259 on at

    Yes they have identical IDs

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @beebul 

     

    even though they have identical attribute , could u verify other attributes are also same then ?

     

     

  • beebul Profile Picture
    259 on at

    I am only using the IDs none of the other attributes. I actually disabled all the attributes above it..

     

    So in the example I am only looking for the ID in section 14, everything else is turned off. The point is the markup is identical but the websites have different addresses.

     

    2023-05-18_12-21-19.png

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @beebul 

     

    Let me look through it.

     

    Actually top level selector for web selector is always like below

     

    Nived_Nambiar_0-1684378696319.png

     

     

    so even if you changed child selector to other website, it should still work.

     

     

  • beebul Profile Picture
    259 on at

    Yes this is my problem 🙂

  • VC_ITXH Profile Picture
    2 on at

    Greetings.

     

    I am encountering sort of similar issue due to dynamic Element IDs generated by the Web Application.

     

    I was able to successfully record web navigation in the browser. While running the flow, I got the below error - specifically not able to identify the field on the screen. In one of the cases it didn't even capture the field name. Please find below the error. Appreciate any help or guidance, if I am not doing it correctly.

    Thank you,
    Vivek

    Error details:
    Correlation Id: 90206d2b-bf7d-42fa-9df5-8df3a573542f
    Element not found: Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.ActionException: Element with selector 'input[Id="lovequipfield-1547-inputEl"]' not found. ---> Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Common.Exceptions.ElementNotFoundException: Element not found
    at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Common.WebAutomationResultExtensions.UnWrap[T](WebExecutionResult`1 result, String cssSelector, String option)
    at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Common.Proxy.LocalWebAutomationRuntime.ClickLinkOnWebPage(WebBrowserInfo webBrowserInfo, String cssSelectorOfElementToClick, String dialogButtonToPress, Boolean waitForPageToLoad, TimeSpan waitForPageToLoadTimeout, Int32 courseOfActionIfDialogAppears, Boolean physicalMouseClick, ClickType clickType, RectangleEdgePoint mousePositionRelativeToElement, Int32 offsetX, Int32 offsetY)
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Common.Proxy.WebAutomationRuntimeRouter.Invoke(MethodInfo targetMethod, Object[] args)
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Reflection.DispatchProxyGenerator.Invoke(Object[] args)
    at generatedProxy_3.ClickLinkOnWebPage(WebBrowserInfo , String , String , Boolean , TimeSpan , Int32 , Boolean , ClickType , RectangleEdgePoint , Int32 , Int32 )
    --- End of remote exception stack trace ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at Microsoft.Flow.RPA.Desktop.UIAutomation.Shared.Rpc.RpcDispatchProxy`1.GetRemoteResultOrThrow(RemoteMethodCallResponse response, Type expectedResultType)
    at Microsoft.Flow.RPA.Desktop.UIAutomation.Shared.Rpc.RpcDispatchProxy`1.Invoke(MethodInfo targetMethod, Object[] args)
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Reflection.DispatchProxyGenerator.Invoke(Object[] args)
    at generatedProxy_1.ClickLinkOnWebPage(WebBrowserInfo , String , String , Boolean , TimeSpan , Int32 , Boolean , ClickType , RectangleEdgePoint , Int32 , Int32 )
    at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationRuntimeServiceProxy.<>c__DisplayClass7_0.<ClickLinkOnWebPage>b__0(IWebAutomationRuntime s)
    at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationRuntimeServiceProxy.<>c__DisplayClass34_0.<ExecuteSafe>b__0(IWebAutomationRuntime s)
    at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationRuntimeServiceProxy.ExecuteSafe[T](Func`2 action, TimeSpan timeout)
    at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationRuntimeServiceProxy.ExecuteSafe(Action`1 action, TimeSpan timeout)
    at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationRuntimeServiceProxy.ClickLinkOnWebPage(WebBrowserInfo webBrowserInfo, String cssSelectorOfElementToClick, String dialogButtonToPress, Boolean waitForPageToLoad, TimeSpan waitForPageToLoadTimeout, Int32 courseOfActionIfDialogAppears, Boolean physicalMouseClick, ClickType clickType, RectangleEdgePoint mousePositionRelativeToElement, Int32 offsetX, Int32 offsetY)
    at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.ClickBase.<Execute>b__37_0(IWebAutomationRuntime s)
    at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationActionBase.<>c__DisplayClass4_0.<PerformWebAutomationWithLogging>b__0(IWebAutomationRuntime s)
    at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationActionBase.PerformWebAutomationWithLogging[T](Func`2 action, WebAutomationRuntimeLogData requestData, Func`3 resultData)
    at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.ClickBase.Execute(ActionContext context)
    --- End of inner exception stack trace ---
    at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.ClickBase.Execute(ActionContext context)
    at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)

    Per my observation of the source generated, the input field IDs are generated automatically. When I launched / navigated to the page, the Element ID is "input[Id="lovequipfield-1538-inputEl"]'". Curious how we can deal with these kind of dynamic field ids.

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @beebul 

     

    What is error it is throwing when using action utilizing the selector ?

     

     

  • beebul Profile Picture
    259 on at

    The standard error about not being able to find the UI element

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