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 / Cant find UI element i...
Power Automate
Answered

Cant find UI element in web page unless another browser instance is open.

(0) ShareShare
ReportReport
Posted on by 33

Hi

I am using PAD on a web page to navigate, extract and insert data. The web page is built using iFrames. I'm finding that when I run the flow for the first time (no other browser instances open), I get the error "Cant find UI element on web page". However, if I dont close that instance, and run the flow again, the flow runs successfully. 

 

1) Run the flow the first time which opens a browser instance (chrome)

2) Get the error "Cant find UI element in web page"

3) Run the flow again without shutting down the previous browser instance which opens a new instance

4) Flow runs successfully

5) Close all browser instances

6) Run the flow again

7) Get the error again "Cant find UI element on web page"

 

Any ideas ?

I have the same question (0)
  • Ask_Harry Profile Picture
    33 on at

    Actually, here is the full error message.

     

    Correlation Id: 07c30396-7312-43e2-bfac-07e811dd70c4

    Connection is not available for frame: 29.: Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.ActionException: Click link on web page failed. ---> Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Common.Exceptions.WebScriptGeneralException: Connection is not available for frame: 29.
    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)

  • Verified answer
    Ask_Harry Profile Picture
    33 on at

    I found the issues.

    1) The UI Element selection tool was including a source "Src" which was pointing to a specific instance of the browser. When I deleted and tested that in a different browser instance, it worked.

    2) I was waiting for "Text in Window" instead of "UI Element in Window".

    Using both of these fixes the problem.

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 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard