How to work with multiple browsers when opened in the window,
write the script for it
Answer Posted / nilanjan saha
Hi all,
We can handle the Multiple Browsers with the Creation Time
property of the Browser.
For the Browser we have Creation Time ordinal identifier.
First browser that opened after opening QTP by default gets
Creation Time:=0, next populates with 1,2 and so on...
We can also manipulate this value from Test Object property
window.
e.g:
Let 3 separate browsers are open. To work on the 2nd one we
can come up with following code:
Browser("CreationTime:=1").page("micclass:=page").Image("micclas:=Image","alt:=Continue
to Login").Click
wait(2)
Browser("CreationTime:=1").close
Please let me know if you found anything I missed.
Regards,
Nilanjan
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
How will you check that your test cases covered all the requirements?
What is data driver in qtp?
How many ways is to parameterize the value?
Explain different type of event trigger option.
How to creating an output value using quicktest professional?
Output values? i want a practical example
What is the pros and cons between QTP and Rational Robot
Explain different types of action in qtp?
How is the Bitmap checkpoint different from Image checkpoint?
What is recovery scenario manager? When you go for recovery scenario manager? Tell me one scenario were your used recovery scenario in your project?
in a web page hoe to check the dynamic links that rechabging with out using regular expressions
how to disable the pop ups through QTP using a script
What is the meaning Work bench?
What do you mean by checkpoints in qtp?
What are main panes available in qtp test browser?