Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Web
#1
Solved: 11 Years, 4 Months ago
Is there a command to close all the potentially open browsers before you begin your script run?
Reply
#2
Solved: 11 Years, 4 Months ago
Hi Anna,
You can use the following code.
Code:
Set b=Description.Create
b("micclass").value="Browser"
Set obj=Desktop.ChildObjects(b)
msgbox obj.count
For i=0 to obj.count-1
c=obj(i).getroproperty("name")
msgbox (c)
obj(i).Close
Next
Reply
#3
Solved: 11 Years, 4 Months ago
Thanks. It works. Where did you get that?
Reply
#4
Solved: 11 Years, 4 Months ago
I think you can also use this to close all the IE's

Code:
SystemUtil.CloseProcessByName("iexplore.exe")
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)