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
What are the major/ important methods, functions in QTP we use realtime testing
I want to capture data(using keyword) from msdos application using QTP?... Below is little work i could do on it... /* Set app=CreateObject("Wscript.shell") SystemUtil.run ("C:\Users\Agent\Desktop\pumpsim\PUMPSIM.EXE") Window(“PUMPSIM.EXE”).Activate wait(3) app.sendkeys "N" */ Thanks in advance...!!!
What is difference between run time object and test object?
what are the limitations of smart identification in qtp 9.0
Explain the features of quick test pro(qtp)?
How do you test the text displayed in the header portion of times of india epaper. Hot news(banner) are scrolling in the top of the page, how do you test using QTP?
what is impact analysis on regression testing?
If you have two monitors one is of 19inch and the 2nd one is of 24inch,if you want to write same QTP script in both the two monitors is there any changes required in the script?
Hi all Can u give me the link where we can download full version of qtp my mail id is karthic.venkitapathi@gmail.com
What are some test assets and related extensions of qtp?
What are the recording modes in qtp?
What kind of performance is expected on the client side (e.g., how fast should pages appear, how fast should animations, applets, etc. load and run)?
How to suppress warnings from the test results page?
What is QTP’s model for test creation?
Can UFT be connected to Quality Center? If ‘Yes’ brief the process or steps.