I'm writing some automated tests using Selenium IDE for a website, so far the tool is quite powerful, especially for a Chrome extension. I want to automate the checking of text field character limits on a form.
I'm thinking it revolves around the Assert command with a locator, but not sure how to get it to look at the limit set in the form control:
Question
Zimmyantz
Hi Neowinians!
I'm writing some automated tests using Selenium IDE for a website, so far the tool is quite powerful, especially for a Chrome extension. I want to automate the checking of text field character limits on a form.
I'm thinking it revolves around the Assert command with a locator, but not sure how to get it to look at the limit set in the form control:
<input class="form-control" onkeypress="return isNumberKey(event) && limit(this, 10)" type="text" id="Number" name="Number" value="">
Any help is greatly appreciated.
Link to comment
https://www.neowin.net/forum/topic/1394090-selenium-ide-verify-maxlength-of-textbox/Share on other sites
0 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now