Blog for QuickTest Pro (QTP) posts for experts and contains frameworks and scripts
Count & Close all browsers
QTP Script to get total count, names of all open browsers and to close them using descriptive programming..
Set ab=Description.Create ab("micclass").value="Browser" Set obj=Desktop.ChildObjects(ab) msgbox obj.count For i=0 to obj.count-1 c=obj(i).getroproperty("name") msgbox(c) obj(i).Close Next
No comments:
Post a Comment