QTP Codes

Monday, 6 May 2013

#1. To close all opened browsers

'#1. To close all opened browsers
Set desc = Description.Create
desc("micClass").Value = "Browser"
Set objBrowser = Desktop.ChildObjects(desc)
for i = 0 to objBrowser.Count-1
   objBrowser(i).Close
next
Posted by Davesh at 12:03
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2024 (2)
    • ►  June (1)
    • ►  March (1)
  • ►  2023 (1)
    • ►  January (1)
  • ►  2020 (1)
    • ►  October (1)
  • ►  2015 (4)
    • ►  October (4)
  • ►  2014 (3)
    • ►  March (1)
    • ►  February (1)
    • ►  January (1)
  • ▼  2013 (9)
    • ►  October (1)
    • ▼  May (8)
      • #11. hoverMouse
      • #10. How to check hidden objects.
      • #7. Few Interview Questions on QTP
      • #6. Function can return an array and an object too.
      • #4. RegisterUserFunc - How to Register a function?
      • #3. To compare two given files through QTP
      • #2. To run a QTP Test from a .vbs file
      • #1. To close all opened browsers

About Me

Davesh
View my complete profile
Awesome Inc. theme. Powered by Blogger.