I have used getText(); but not working please help me out
Text Box 1: I need to get the value from this text box.
String value = driver.findElement(By.xpath("html/body/div[5]/div/div/div/div/div[2]/div/div[1]/input")).getText();
Text Box 2: I wanted to put it here but value is not coming here.
driver.findElement(By.xpath("html/body/div[1]/div/div[2]/div/div/div/div[2]/div[1]/div[1]/form/div/input")).sendKeys(value);
Any help is appreciated, thanks in advance.