I've searched, but couldn't find an exact match, so my question is about a low HTML code:
<div class="column1">
<div>
<div class="name">
Dynamic Name
<span class="id" title="ID">Dynamic ID</span>
</div>
</div>
</div>
I'm in need of an XPath to extract the text "Dynamic Name." Here's what I've tried so far:
1. //div/div[@class='name'] - this is returning "Dynamic Name Dynamic ID"
2. //div/span[@class='id']/preceding-sibling::text()
Since both "Dynamic Name" & "Dynamic ID" are dynamic values, splitting the text is not an option. Any help is greatly appreciated!