Re: Best approach to find the max lengeth of a textbox
Quickest approach or best approach?
If you want quickest, since you already know the requirement have robot enter 51 characters into the textbox then read it back and verify only 50 were entered. This verifies that the limit of 50 is not exceeded.
Similarly you can have robot enter 50 characters and read it back. This will verify that the limit of 50 is indeed set correctly.
This is very easy code to write and a pretty darn quick test as well. If you have to do this to multiple text boxes I would suggest creating functions to do the dirty work that only takes a variable of the rec string for the text box. That way you can call the function multiple times while passing in a new rec string.
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!