Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Web
#1
Solved: 10 Years, 9 Months, 1 Week ago
Is there a command to close all the potentially open browsers before you begin your script run?
Reply
#2
Solved: 10 Years, 9 Months, 1 Week 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: 10 Years, 9 Months, 1 Week ago
Thanks. It works. Where did you get that?
Reply
#4
Solved: 10 Years, 9 Months, 1 Week 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: 1 Guest(s)