Selenium WebDriver get text from input field
This is the input
element - you need to get the value
attribute:
webDriver.findElement(By.id("inputTag")).getAttribute("value")
This is the input
element - you need to get the value
attribute:
webDriver.findElement(By.id("inputTag")).getAttribute("value")