• 0

Selenium IDE - Verify MaxLength of Textbox


Question

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) &amp;&amp; limit(this, 10)" type="text" id="Number" name="Number" value="">

Any help is greatly appreciated.

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.