In order to get the value of an element you can do it by
document.getElementById("Sal").value
In order to get the value of an element you can do it by
document.getElementById("Sal").value
I have tried to get text/value from Html Dom by using getAttribute(); and getText(); from WebDriver but i didn’t get any value into console. Plz help me get rid of this issue.In the mentioned image developers didn’t provide any Value attribute to get text.
Hello, welcome to StackOverflow! Please post your code so we can help you and reproduce your problem. Also recommended to read:
<input>
You should still be able to get the value using