Test Objects:

‘**********************************************************************************************
‘Test Objects
‘**********************************************************************************************


          ‘Browser Object
Set objBrowser = Description.Create()
objBrowser("micclass").Value = "Browser"
objBrowser("title").Value = "Gmail: Email from Google"

          ‘Page Object
Set objPage = Description.Create()
objPage("micclass").Value = "Page"
objPage("title").Value = "Gmail: Email from Google"

‘Editbox Object
Set objEdit = Description.Create()
objEdit("micclass").Value = "WebEdit"
objEdit("name").Value = "Email"
objEdit("html id").Value = "Email"

‘Password Object
Set objEditPwd = Description.Create()
objEditPwd("micclass").Value = "WebEdit"
objEditPwd("name").Value = "Passwd"
objEditPwd("html id").Value = "Passwd"

‘WebButton Object
Set objWebButton = Description.Create()
objWebButton("micclass").Value = "WebButton"
objWebButton("name").Value = "Sign in"

‘Link Object
Set objLink = Description.Create()
objLink ("Class Nam").Value = "Link"
objLink ("name").Value = "About Gmail"

‘Sample Code for using Test Objects
Browser(objBrowser).Page(objPage).WebEdit(objEdit).Set "balaraju.s"
Browser(objBrowser).Page(objPage).WebEdit(objEditPwd).SetSecure "4bb2f19db7f5c050ac18ca29f3cb094e38986be6f7404b0a"
Browser(objBrowser).Page(objPage).WebButton(objWebButton).Click
 ‘**********************************************************************************************

No comments:

Post a Comment