I have an HTML document with a structure like this:
<div class="parent">
<!--more stuff here-->
<div class="child">
</div>
</div>
I want to select the element with the class of 'child' that sits beneath class 'parent'. Will the below get the job done in xpath, and/or are there better ways? (Note that any number of elements can sit between the <div>s above.)
//div[@class='parent']//div[@class='child']