02-23-2012, 09:20 AM
Hi! I did descriptive programming to log in, To write and save in yahoo notepad and log out with input and output checkpoints.
Now I want to convert the log in code (Descriptive) as a function. I know how to associate it with the script and call. But I have some problem with converting the Descriptive code as function. here is my code.I am confused what to put in ()
-------------------------------------------------------------
Now I want to convert the log in code (Descriptive) as a function. I know how to associate it with the script and call. But I have some problem with converting the Descriptive code as function. here is my code.I am confused what to put in ()
-------------------------------------------------------------
Code:
Function yahooLogIn (ID, password)
ID=jinn***ml
password = "*****4f45aac28**************"
Browser("Micclass:=Browser").Page("Micclass:=page").WebEdit("html id:=username").Set ID
Browser("Micclass:=Browser").Page("Micclass:=page").WebEdit("html id:=passwd").SetSecure password
Browser("Micclass:=Browser").Page("Micclass:=page").WebButton("html id:=.save").Click
End Function