Data Scraping - how to get an attribute value insead of innertext?

datascraping

#1

Hi,

this is the html tag:

<span title="Production network" uipath_custom_id="11" text_capture_x_custom_id="02/15/2018 08:58:31-1" style="">Zsn</span>

This is The extract metadata string generated by the wizard:

<extract>
<column exact="1" name="Z" attr="text">
	<webctrl tag="tr"/>
	<webctrl tag="td" idx="6"/>
	<webctrl tag="span" idx="1"/>
</column>
</extract>

With this metadata the inner text “Zsn” of the span tag is being extracted. But how to get the attr value of title=“Production network” and not the “Zsn” text?

Thanks


#2

@LukJas,

Title parameter has it.

get attribute with Title params

Regards,
Dominic :slight_smile:


#3

Hi
How do I apply the get attribute to the metadata XML?
The span tag is within a table with with 0:n rows.


#4

@LukJas, Can you indicate the entire table for selector and try choosing the Title parameter ?

regards,
Dominic :slight_smile: