I have tried with the xpath like "//HTMLtag[contains(text(),'Yourtext')"//HTMLtag[contains(text(),'Yourtext')
and contains(text(),'Yourtext')]"contains(text(),'Yourtext')]"
, but this case worked for the particular html tag and not for the different tags. how to make it to work for different tags like "//HTMLtag[contains(text(),'Yourtext')]
"//HTMLtag[contains(text(),'Yourtext')]
and //HTMLtag[contains(text(),'Yourtext')]"
//HTMLtag[contains(text(),'Yourtext')]"
.
here is the HTML snippet. Have to select admin of group from the below code.
<div class="widget">
<div class="widget-body">
<h3 class="h3b">Admin</h3>
<h4 class="h4a">Group</h4>
</div>
<div class="widget-body">
<h3 class="h3b">Admin</h3>
<h4 class="h4a">Class</h4>
</div>
</div>
Helps AppreciatedAny help is appreciated...!!!