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 test a keyboard?
Write the code for,In the page screen we have total 10 Links,out of these I have to click 9th link
How many types of parameters are available in quicktest professional (qtp)?
What are the common defects found in your project? (in qtp interview)
what is meant by Implicit and explicit requirements?
How the exception handling can be done using quicktest professional (qtp)?
what is the mail use of frame work(with detail). architecture for keyword driven frame work
How to create a standard checkpoint ?
Is it possible to call win runner script in qtp?
How to execute the WR Script through QTP? I have WinRunner script with initialization script, common scripts, GUI AND functions. I connected WR through QTP with "call to WinRunner" option but I am getting problem after connecting to WinRunner i.e. showing "Do you want to quit now" with 'yes' and 'No' message box
iam working in QTP for 2+ of exp if i attend the interview what r questions asked in perfomence testing{loadrunner} ? pls any one can say answer to this question?
What is the meaning Work bench?
Which is the best QTP training institute in Delhi/NCR region and what is the approximate fee for QTP course (Basics and Advanced)
What are the key elements available in test result window?
Hi am New to Automation Testing , any one can you help me what are the basic questiion are asked an interview?