How can I get text of this element:
<div class="status-value" id="divdoctyp" xpath="1">AADHAAR CARD</div>
I tried this
WebElement doctype= driver.findElement(By.xpath("//div[@id='divdoctyp']"));
String type=doctype.getAttribute("type");
String label=doctype.getText();
Thread.sleep(5000);
System.out.print("doctype is "+type +"\n"+label);