title: Java - Selenium Webdriver: Entering text into text field, and removes automatically from the text field
body: <p>when i enters the text into the field it gets removed automatically after entering.</p>
  
  <pre><code>String barcode="0000000047166";
  
  WebElement element_enter = _driver.findElement(By.xpath("//*[@id='div-barcode']"));
  
  element_enter.findElement(By.xpath("//html/body/div[1]/div[3]/div[1]/form/div/div/input")).sendKeys(barcode);
  </code></pre>