Solution 1 :

In order to get the value of an element you can do it by

document.getElementById("Sal").value

Problem :

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.

Comments

Comment posted by Tips for asking a good question

Hello, welcome to StackOverflow! Please post your code so we can help you and reproduce your problem. Also recommended to read:

Comment posted by Andreas

<input>

Comment posted by Dcdanny

You should still be able to get the value using

By