several browsers opened. write QTP script to close all browsers except gmail.

Answer Posted / puspita

Dim d
Set d=Description.Create
d("micclass").value="Browser"
Set a=Desktop.ChildObjects(d)
For i=0 to a.count-1
s=a(i).GetROProperty("title")
If instr(1,s,"Gmail")=0 Then
a(i).Close
End If
Next

Is This Answer Correct ?    22 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about business process component? types and usage?

1735


What is checkpoints for quicktest professional?

751


when u script reveiwing in which area u more concentrates?

1618


Hi we are running tests remotely from quality center and pushing tests into qtp boxes remotely, and it does execution but while uploading results back into quality center it hangs in qtp box.If any one come across similar problem, please send me details how to handle this. Thanks kris

1941


how to test load test and block box testing an a web based application pls give ans briefly

1558






Subj: realtime example of Database check point, Can any one please detail on how the Database check point is utilized/implemented in a real time project. I already know how to make one by creating DSN/ODBC and writing the required query manually and other steps...I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thank you in advance

1970


What is the use of text output value in quicktest professional (qtp)?

776


Is it possible to split an action? How?

827


How u will do versioning in QTP?

1622


QTP script is not working on other's machine..

1707


Explain the qtp test phases.

786


Where you are storing your script?

813


Did QTP prove efficient for your project? Yes or No, explain?

6314


How does qtp identify the object in the application?

699


What is throw Object?

1750