Need xpath for the below script where i need to store the number 3:
<div class="col-xs-4">
<div class="col-xs-8">
<small class="stat-label">
<a style="color:#fff;" href="www.mywebsite.com">Customers</a>
<h1>3</h1>
The problem is the same code is used in three other places also. The only change in other places are the href url and the name (eg: Customers)
I tried this:
int customCount = driver.findElements(By.xpath("//div[@class='col-xs-8']/h1")).size(); [But firepath highlights in other places also and gets some other value]
and this:
//div[@class='col-xs-8']/small [Again highlights in other places]
Is there anyway to get the number 3?