Selenium Webdriver: Entering text into text field

0
0

When I enter text into the text field it gets removed.

Here is the 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");
  • You must to post comments
0
0

Agree with Subir Kumar Sao and Faiz.

element_enter.findElement(By.xpath("//html/body/div[1]/div[3]/div[1]/form/div/div/input")).sendKeys(barcode);
  • You must to post comments
Showing 1 result
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Website