Hi i want to get "Total of 23 record(s) in 2 page(s) " this msg as output
<a href="#pageshow" data-action="page-show" rel="tooltip" data-placement="bottom" data-original-title="Total of 23 record(s) in 2 page(s)" class="btn btn-default txt-color-blue dropdown-toggle" data-toggle="dropdown" xpath="1" style="">1<i class="fa fa-sort-desc pull-right"></i></a>
This is the xpath from which i want to select text
i tried --
System.out.println(driver
.findElement(By.xpath("/html[1]/body[1]/div[6]/div[1]/div[1]/div[2]/div[1]/div[1]/div[2]/div[1]/a[2]"))
.getAttribute("value"));
but get null as output