It seems to me that Silk has some issues with text fields where type="password". In my case password field has restriction maxlength=50 which limits user from entering more then 50 characters. When I'm executing the following code (below) I'm getting back my original string (which is 55 char. long).
I've tried the same scenario with Username field which is just a regular text field and it works just fine. I got back string 50 characters long. Original string was chopped [img]images/icons/wink.gif[/img]
Any ideas what is going on?
P.S. Also Iíve tried TypeKeys method instead of SetText same result.
I am pretty sure that what is happening is some kind of on-the-fly encryption. The new encrypted string is longer than the entered string and its uses some MD5 type thing to convert back and forth.
It seems to me that to really write a good test you should set the user/pass fields and submit the form, then handle the error dialogs which come up to say "Password too long". I realize that you may have just shortened your description for clarity, of course.
Chris R Mead
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
I doubted that it has anything to do with encryption. But any way there is a work around.
You can copy text to Clipboard (55 characters) and then past (Ctrl-V) it in to the password field. Interesting part is that string be chopped off exactly 50 charters which mean that max length of that field is working. I might be completely wrong but I think that SetText and TypeKeys methods have some problem with password filed.