Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
problem about SetSecure
#1
Not Solved
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)

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
Reply


Messages In This Thread
problem about SetSecure - by stevol - 06-03-2008, 06:02 PM
RE: problem about SetSecure - by Anshoo Arora - 06-04-2008, 04:05 AM
RE: problem about SetSecure - by stevol - 06-05-2008, 01:43 AM
RE: problem about SetSecure - by Anshoo Arora - 06-05-2008, 03:45 AM
RE: problem about SetSecure - by stevol - 06-05-2008, 12:36 PM
RE: problem about SetSecure - by somisays - 06-05-2008, 11:42 PM
RE: problem about SetSecure - by stevol - 06-06-2008, 12:55 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  SetSecure on a WinObject? RandomGrin 1 2,824 11-04-2014, 10:00 AM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 3 Guest(s)