Write VBscript without using QTP Recording

Can you completely write VBscript for your project without using recording mode in QTP? If yes, illustrate with an example?

Questions by ramakrishnaqc

Showing Answers 1 - 1 of 1 Answers

Dim intCnt
Dim oD, oDObj


     Set oD = Description.Create()
     oD("micclass").value = "Browser"

     Set oDObj = Desktop.ChildObject(oD)

     For intCnt = 0 to oDObj.Count-1
         Reporter.ReportEvent micDone, oDObj(intCnt).GetROProperty("title")," The Browser is Closed"
         oDObj(intCnt).Close
     Next



Regards,
Nawab

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions