Scaping a span element with no classname

Hello,

Thanks for such a great tool!

I am trying to scrape data within a SPAN tag which has no classname but it does have another attribute which describes the data in the span. I cannot use the nth-of-type option because the same data is not always present or in the same order. As an example the html is like this:

<div class="details". valueofdata1 valueofdata3

Selecting the element gives me the selector
div.details span:nth-of-type(1)
which correctly selects valueofdata1 as the scraped data

However, the second span goes into the column valueofdata2 (as the second span element is not in the page) instead of valueofdata3 where it belongs. In other words, on some pages the span for valueofdata2 exists and in some it doesn't

Please forgive my ignorance of css and kindly let me know how to specify the span elements which don't have a classname but have attributes in the tag.

Thanks very much in advance

Resolved by using Element Attribute selector - stupid me !