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


Please Help Members By Posting Answers For Below Questions

How will you check that your test cases covered all the requirements?

767


What is data driver in qtp?

755


How many ways is to parameterize the value?

828


Explain different type of event trigger option.

711


How to creating an output value using quicktest professional?

725


Output values? i want a practical example

1508


What is the pros and cons between QTP and Rational Robot

3490


Explain different types of action in qtp?

793


How is the Bitmap checkpoint different from Image checkpoint?

817


What is recovery scenario manager? When you go for recovery scenario manager? Tell me one scenario were your used recovery scenario in your project?

785


in a web page hoe to check the dynamic links that rechabging with out using regular expressions

1975


how to disable the pop ups through QTP using a script

1936


What is the meaning Work bench?

1950


What do you mean by checkpoints in qtp?

763


What are main panes available in qtp test browser?

712