I’m trying to get a value from custom Attribute in the web application either ID or Name ,I have tried using Get attribute activity but I’m unable to get values from that !!
Welcome back to our uipath community.
If you indicate that element using Get Attribute activity then it will list down all attributes names as drop down into that Activity. From this list you need to select required Attribute name and then it will give you output as Selected attribute value.
what if I need to get data from the web application i.e custom ID’s for ex test_id in the web application?
Indicate that element in the web page the one you want to read value.
while using GET ATTRIBUTE activity, indicate the element we want while selecting that
and check once in the selector whether it has the attribute we want like you mentioned
if not include that node in selector with SELECTOR EDITOR
–once after that mention the attribute name in the GET ATTRIBUTE activity and get the output with a variable of type string named str_output
Thanks @Palaniyappan now it is working fine !!
and for some elements the custom attribute is present in the web site and it is not displayed in the uipath selector !!
May be those can added with some ui nodes from Visual Tree and its properties in selector editor
great that it worked
do we have any other queries to be discussed buddy
Thanks @Palaniyappan ,Can u elaborate the above contents !!
Lets assume that we have a selector called testID in the DOM and it is not displayed in the UI Explorer so in this case what is the solution here ???
Fine go to selector editor there in the left side we could see two options called visual tree and property
In that choose visual true and for each node we will will be having some properties that is the attributes which can be seen in below property tree
In that you will be able to see those attributes
@Palaniyappan Even in visual tree I’m unable to find those selectors !!
It would be there buddy if the element is defined with those tags
Did we try other options in UiExplorer
Like we got three other options to select the element like default, UiAutomation, Active Accessibility