If there are some browsers opened and I don't how many browsers are open, Now I want to close all the browsers that I don't know how many are opened.
What would be Descriptive programming for this in QTP using VB Script..???
Please send your answers.
Answer Posted / rangalnrt
set Objects = description.create
Objects("micclass").value = "Browser"
set Childs = Desktop.childobjects(Objects)
for i=0 to Childs.count-1 step 1
Browser("index:="&i).close
next
if Browser("index:=0").exist then
msgbox "Fail"
Else
msgbox "Pass"
End if
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Analyzing the checpoint results?
Can any one tell me about "Mapping Repository Parameter Values" and why we use it....??How to use it???Please, tell the preconditions also...........???? Thanks in Advance
Explain the Different types of QTP test assets and their extensions?
Hello friends..... On which areas of an application we can not test with QTP
What is the difference between the keyword view and expert view?
Tell me one scenario, the complex functionality you have automated in your project?
Suppose you are using shared objects repository in your test and you want to split your present action? At that time shared object repository is single or it’s also splits?
how u will evaluate the tool for test automation?
Is QTP Supports SWT applications? If yes, can you write a sample script for opening a new package in eclipse.
How will you handle java tree in qtp?
What are the key elements available in test result window?
How to open a new test using quicktest professional (qtp)?
How is the Bitmap checkpoint different from Image checkpoint?
Hi, I am working on microsoft infopath forms..It is standalone form..(not dotnet or web.) . I am not able to indentify any objects in it.. I am currently using active accessibility in the macro for the same but its execution is too slow.. Kindly help in case you have better solution.
In Test Directory, What are the contents in test case designing? if you prepare in excel sheet how u use thrw Test Directory?