Get Text from Tutorial is throwing error


#1

Hi,
I am a new bee, trying to follow the step of bellow tutorials:

I have recorded all the steps but it is still throwing an error with bellow error:

Main has thrown an exception

Message: Cannot find the UI element corresponding to this selector:

Source: Click ‘menu item Font…’

Exception Type: SelectorNotFoundException

UiPath.Core.SelectorNotFoundException: Cannot find the UI element corresponding to this selector: —> System.Runtime.InteropServices.COMException: Cannot find the UI element corresponding to this selector:
at UiPath.UiNodeClass.FindFirst(UiFindScope scope, String nodeID)
at UiPath.Core.UiElement.FindFirst(FindScope scope, Selector selector)
— End of inner exception stack trace —
at UiPath.Core.Activities.TaskAsyncCodeActivity`1.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)


#2

Hello Sami,

This kind of error occurs, when recorded UI Element not found during the execution. Sometimes selectors are change dynamically so based on that you have to match with selectors dynamically.

Please check selector values in Target property at properties pane ( right side of UiPath Studio).

It will help you to identified if any dynamic values are changing for specific selector.