Check maximum field length using selenium IDE

I need to check the maximum allowed field length using the selenium IDE. need to consult from someone.

+3
source share
2 answers

You can use the assertAttribute command as follows:

assertAttribute | id=myTextField@maxlength | 20

Replace “id = myTextField” above with the appropriate locator and “20” with the expected maximum length.

+5
source

Using Selenium enters data into a field that is larger than expected. Then read from the field to determine if the maxchar attribute has bounded in the corresponding input field.

+3
source

Source: https://habr.com/ru/post/1718178/


All Articles