I want to enter a text into the text field but when I enter the text into the text field it gets removed automatically.
Below is my code:
String barcode="11111000085157";
WebElement element = 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");