String count in WebUI ( Verify Greater Than )


I have a text box that has a limit for 50 characters, Can I use WebUI ( Verify Greater Than ) to count the input string if the user enters 50 or more? if the input is more than 50 then the step should be failed

I can’t find anything that has count characters

please advice

you can simply set the text of your element (testbox) to a string of, let’s say 100 characters, get it back in a string variable and check his length, sort of:

assert string.length() <= 50