Hi all, im new to uipath need your assistance on this function; i want to use get attribute to identify the incident location in web newspaper site and compare it in the excel file but always get this kind of error. hoping for a guidance

hi all, im new to UiPath need your assistance on this function; i want to use get attribute to identify the incident location in web newspaper site and compare it in the excel file but always get this kind of error. hoping for a guidance

Hi @Iman_Shafeeq

Looks like your selector is including the text of the 1st value you selected right on the part where it says “Prime Suspect…”

Looking at your image, this text is dynamic, therefore the selector is failing as this text is not there anymore.

You need to tweak the selector a bit, and either change all that text to an asterisk (*) or remove that tag and make sure that the selector is still valid and pointing to your desired element.

Text to eliminate/tweak from the selector:
image

image

BR,
Ignasi

thank you for your guidance now the workflow running smoothly but how do i know if the attribute that being compare is the right one?

Great to hear!

Open UiExplorer from Studio, and select the item you are scanning on the “Get Attribute” activity.

On the left hand side, you will have a breakdown of attribute and value, like this:

in this case, if I wanted to extract the text “UiPath Automation Platform” I would need to select on the “Get Attribute” value, the “innerhtml” attribute (or innertext, as they both have the same value on this example).

Hope it helps!

BR,
Ignasi

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.