Hi all, anyone knows which is the best approach to verify if the input field does not accept special characters, e.g: "$#@%%^&*(" , either on Android or iOS?
For example, I have an input field that only accepts numeric characters, any other special characters besides allowed characters are not sent to the field no matter what users pressing on the keyboard itself.
I try to use 'Send Keys' function and then assert the input field's text equals blank (input values are not filled), but Appium can still send the restricted characters successfully.
To be honest:
<input type="number" >then you shouldn't even test it because this is default behavior, if it's broken, the it's broken for the whole world. There are also some functions for that for native code
I'd always advice to avoid these type of tests through the UI, especially on mobile because they are 3-6 times slower than on desktop browsers