how to get text from this element I can't understand this element : 
How can I get text of this element please help..???


<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);

  

