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
whare exactly we have to use functions and sub routain
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
Explain how you can find the absolute value of the number in qtp?
In application which areas to be automated and what kind of situation will be take? using QTP? Plz give me the clear answer
Why is action split used by qtp?
what is clean sweep?
what is error and fault in terms of software quality?
What is test object model in quicktest professional?
What is active screen?
How to test login module with different username and password by using data driven testing in QTP?
Explain the terms test and business component?
Can anyone tell me how i used QTP 9.2 use for GIS based S/w with an example?
How to analyzing the checpoint results?
How to use Environment parameterization? Explain with an example.
How many add-ins comes by default with qtp?