Parameter Object:

‘**********************************************************************************************
‘Parameter Object
'Purpose - To pass Input/Output Parameters to action
‘For defining Input/Output Parameters for specific action, navigate Edit à Action à Action Properties and active Parameters Tab 
‘**********************************************************************************************

Public Function funcParameter()

          SystemUtil.Run "C:\Program Files\Internet Explorer\iexplore.exe","","C:\Documents and Settings\sangaraj","open"
Browser("Browser").Page("Page").Sync
Browser("Browser").Navigate (Parameter("URL"))

Browser("Browser").Page("Gmail: Email from Google").WebEdit("Email").Set (Parameter("UserName"))
Browser("Browser").Page("Gmail: Email from Google").WebEdit("Passwd").SetSecure (Parameter("Password"))
Browser("Browser").Page("Gmail: Email from Google").WebButton("Sign in").Click

Browser("Browser").Page("Gmail - Inbox (10513)").Frame("c1luxwfk0u1k0k").WebElement("WebElement").WaitProperty "visible", 1, 10000

Browser("Browser").CloseAllTabs
End Function
‘**********************************************************************************************

No comments:

Post a Comment