New answers tagged


To check the maximum and minimum length of any field, you can use the HTML's maxlenght and minlength attribute and then find the lenght using Selenium's getAttribute("maxlength") and getAttribute("minlength") function. Sample code is given below: Say we're talking about the username field. //Getting the minimum and maximum value of the username field ...


You can try execute script function. See my example below: Here is test output: Inside getComputedStype you need to use JS way to look up the element you need and then invoke getPropertyValue with the value you would like to assert. Being saved to a variable (in my case it is ${WDTH}) you will be able to test your property for a specific value.

Top 50 recent answers are included