title: How to retrieve integer value from field in selenium?
body: <p>I want to retrieve integer data from a field, it is a mobile number field which accepts only numbers.</p>
  
  <p>This is my code</p>
  
  <pre><code> WebElement FatherNum= driver.findElement(By.id("fatherMobile")); 
   FatherNum.clear(); FatherNum.sendKeys("1234567890"); 
   FatherNum.getAttribute("value"); 
   System.out.println(FatherNum);
  </code></pre>
  
  <p>getting in FatherNum :</p>
  
  <pre><code> [[ChromeDriver: chrome on XP (17b4c2e854f9f3083a87d4654f52228d)] -&gt; id: fatherMobile]
  </code></pre>