06-03-2008, 06:02 PM
Hi,
I have written the following code with a login in website, and i use 'setsecure' for the password (exactly as when i register the code), but i don't understand why in the pwd field on the website i have only 1 hidden character and nothing else [when i register the code i have number of hidden characters equal to the number of characters of the password, that is '4' in the example below]. Any idea? (I presume this is the reason why then code fails the login)
Thank for every help
I have written the following code with a login in website, and i use 'setsecure' for the password (exactly as when i register the code), but i don't understand why in the pwd field on the website i have only 1 hidden character and nothing else [when i register the code i have number of hidden characters equal to the number of characters of the password, that is '4' in the example below]. Any idea? (I presume this is the reason why then code fails the login)
Code:
Dim brow, pag, webuser, webpwd
Set brow =Browser("name:=Vodafone")
Set pag =brow.Page("title:=Vodafone")
Set webuser =pag.WebEdit("default value:=Username", "name:=username","html tag:=INPUT","type:=text","index:=0")
'Set webpwdtxt=pag.WebEdit("name:=passwordTxt","html tag:=INPUT","type:=text")
Set webpwd =pag.WebEdit("name:=password","html tag:=INPUT","type:=password","index:=1")
Dim user, pwd
user="abcd"
pwd="1234"
URL="http://www.vodafone.it"
SystemUtil.run "iexplore",URL
pag.Sync
webuser.Set user
webpwd.SetSecure pwd
Thank for every help