Issue 1: I’m trying to find the position of the text and result is an Uielement, then i was trying to print the Inner Text attribute of that uielement, It was throwing an error.
**Note:**then , If i give Attribute “aaname” and some other attributes were showing correct results.
Issue 2: i am clicking on a button called “Learn Html” i need aaname of an element. If am using get attribute activity and indicating that element directly it was giving correct aaname Say (Learn Html) and another way like using find text position input is “Learn html” and passing the uielement to get attribute to get aaname it was printing “W3schools web tutorials” title of the page
I dont know why!!!
Source: Get Attribute (Get Attribute)
Message: Attribute not supported by the current UiNode.
Exception Type: UiPath.Core.ElementOperationException
An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
UiPath.Core.ElementOperationException: Attribute not supported by the current UiNode. ----> System.Runtime.InteropServices.COMException: Attribute not supported by the current UiNode.
at UiPath.UiNodeClass.Get(String bstrAttr)
at UiPath.Core.UiElement.Get(String attribute, Boolean refresh)
— End of inner ExceptionDetail stack trace —
at UiPath.Core.Activities.ScopeActivity.OnFaulted(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.Invoke(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.FaultWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
Could you give me a hand ? to solve this please?