In the Selenium IDE, you can use the verifyEval command and a bit of JavaScript to verify that the field is filled or not.
Command: verifyEval Target: this.page().findElement("//input[@id='email']").value != '' Value: true
In this case, I test that <input type="email" id="email" value=' address@domain.com "> not an empty field on my HTML page.
When this command is run, the JavaScript code in the target is evaluated. Here it checks the current value of the email field on an empty string. If they do not match (for example, the field is not empty), true returned. This return value is then compared with the expected Value , which is also true, and so the test passes.
source share