07-04-2012, 04:17 PM
Try the below
Regards,
Ankesh
Code:
Set objBrowser=Description.Create
objBrowser("title").value=".*"
Set objPage=Description.Create
objPage("title").value=".*"
Set objButton=Description.Create
objButton("type").value="submit"
objButton("html tag").value="INPUT"
objButton("name").value="Add"
Set objChildObjects=Browser(objBrowser).Page(objPage).Childobjects(objButton)
msgbox objChildObjects.count
'Release the objects once operation is over
Set objBrowser=Nothing
Set objPage=Nothing
Set objButton=Nothing
Set objChildObjects=Nothing
Regards,
Ankesh