Selenium Java Web Driver: How to pass numeric data to a numeric field?
For String values we use the command sendKeys("String");. Similarly, what is the command for posting numeric data to the numeric field?
Selenium Java Web Driver: How to pass numeric data to a numeric field? For
Share
If you do
sendKeys("9");it will send the number to the numeric field. I suppose you have something like that:And you want to send it to numeric field. You can do it by these two ways:
And then you can use either
or