Save the value of a attribute in a GetElement.nm

Hi!
I try to save the value of a atributte, but i do not know how
I use a Get element.nm activity with a xpath like this:

xpath: “div/div[last()]”

The element i can find it, and i can retrive de value in the “Item” variable, that is not the problem. What i need is save an attribute of the Div, is an pn_id=“1234”, and the number always change, so every time that i ask for the last child that number change.

there are any way to save that value, of that attibute, to a variable to compare later?

Hello Jorge,

Try using item.Attributes("pn_id").ToString as Value inside Assign activity to get the pn_id attribute from the div.

2 Likes

Item.attributes is a hash table that should contain it.

thank you for the response, it work nice!

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