I have a collection of div elements that have the class media-gallery-item. I would like to select element number x.
media-gallery-item
When just selecting all items,
It looks like your accessing attributes in the wrong way. Try to use
/div[@id='content-area' and @class='media-gallery-item'][2]