How to verify text length when it's limited from UI

Hello

I’m trying to set a step for checking maxLength for text field, this field has used maxLength property for limiting the text in text box.

so the expected result is not an error message, it’s a limited text from UI. I wasn’t able to find anything related to this scenario

please advice

If this was my problem, I would populate the field with “maxlength characters + 5” and then read it back (most probably using JavaScript) and check the length.

But you’re right, there’s nothing in WebUI to handle that specific scenario.

If you want some help going the JavaScript route, I’ll need more details.

Can we do both at the same time ( WebUI and JS ) ?

I have a username filed and trying to test the maxlength characters=10 if the user can enter more than 10 if should be failed