Need to get the XPATH of following element in the table: Here the value 5000 is varying but Unit Voltage is constant text, need to get an xpath with following element concept, had tried below xpath, but its not working :
//div[contains(text(),'')]/follows/div/span[contains(text(),'Unit voltage (V)')]
The Concerns are there ID changes for each environment so cant be used, need help in getting working xpath on above format.
PFB the HTML code part
<tr class="v-formlayout-row v-formlayout-firstrow">
<td class="v-formlayout-captioncell">
<div class="v-caption v-caption-tiny v-caption-smalllabel v-caption-hasdescription">
<span id="gwt-uid-207" for="gwt-uid-208">Unit voltage (V)</span>
</div>
</td>
<td class="v-formlayout-errorcell">
<div class="v-formlayout-error-indicator">
</div>
</td>
<td class="v-formlayout-contentcell">
<div class="v-label v-widget tiny v-label-tiny smalllabel v-label-smalllabel v-label-undef-w" id="gwt-uid-208" aria-labelledby="gwt-uid-207" style="">5000
</div>
</td>
</tr>