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 / kaps
'Check if this is working
Dim TrueOrFalse
Do while("True")
TrueOrFalse = Browser("index:=0").Exist(2)
if(TrueOrFalse = "False") then
exit do
else
Browser("index:=0").close
end if
Loop
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Explain the differences between table and db checkpoints?
Tell me one scenario, the complex functionality you have automated in your project?
Analyzing the checpoint results?
How to capture all the data of a webtable, weblist and combolist using QTP?
If an application name changes frequently i.e while recording it has the name, in this case, how do qtp handles?
When to use descriptive programming?
What is the framework your company is following. What is the reason. Explain why key word driven frame work is chosen.
after initiating one project for testing, when exacltly QTP tester role starts?
www.icici.com after this home page wll came, in this page what r the items we r going to test for manual and what the element we r test for QTP... explian clearly with example
How to use debug tools?
I want to test my vb.net solution file using qtp. Does Qtp test only .exe file?
How to record a qtp script ?
How can I check if a environment variable exist or not?
Which scripting language used by quicktest professional?
How to upload excel files into Quality Center using QTP Script and how to delete excel files from Quality?