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

whare exactly we have to use functions and sub routain

1928


Hi, I'm a beginner in QTP and planning of a certification in QTP, but have no idea about it :P. Could anyone please tell me what certifications that a QTP- beginner can take? What is the fees and the syllabus for the certification? Please reply soon. Thanks Vidhya

1518


Explain how you can find the absolute value of the number in qtp?

735


In application which areas to be automated and what kind of situation will be take? using QTP? Plz give me the clear answer

2028


Why is action split used by qtp?

647






what is clean sweep?

1623


what is error and fault in terms of software quality?

1537


What is test object model in quicktest professional?

718


What is active screen?

642


How to test login module with different username and password by using data driven testing in QTP?

721


Explain the terms test and business component?

625


Can anyone tell me how i used QTP 9.2 use for GIS based S/w with an example?

1787


How to analyzing the checpoint results?

608


How to use Environment parameterization? Explain with an example.

1570


How many add-ins comes by default with qtp?

626