I\'ve a case where I\'ve to get the text from input
tag which is something like -
use element.getAttribute("value")
. getText can not extract input value.
you can use any of the below:
1. element.getAttribute("value")
2. element.getAttribute("innerHTML")
3. element.getAttribute("innerText")
4. element.getText()
5. ((JavascriptExecutor)driver)execute.script("return arguments[0].value",element)
Let me know if this does not helps.