Set of special characters is say (!,@,#,$,^,&,*,<,?)
now I need to input a value in text field that can have First letter as special character(using from above list) and then perform search.
If no validation appears then it will pick another special char from list as first char of input value and perform search.
If validation appears that first char is special char then exit loop.
these loop needs to be continue until all the specials chars from list are checked.
The code that I used to check first char is not number as follows:
repeat with n=0 up to 9
Typetext Test //Final input value is in form 1Test, 2Test etc in textfield
Typetext Escape //remove virtual keypad
Click "Search" //perform search
If not ImageFound ("Validation")
Log error "No validation"
repeat until ImageFound("textfield") //remove prefilled data from textfield