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
can u explain relative path architecture framework in qtp?
In qtp, explain what is keyword driven automation framework?
How you can replace string in qtp?
How to connect the remote desktop using QTP 9.2 explain the method or procedure?
I had installed QTP 9.2. It is working fine but whenever I open QTP, it is trying to reinstall the below-mentioned files again and again "QTP92PS82UPGRADE.exe", "recogn.dll". If anybody has these files, please provide those files in this site or you can send that files to my mail id also (lravi4u@yahoo.com). If you don't know where the files will be in the QTP, search in the QTP software CD or path of QTP program installed (C:\Program Files\Mercury Interactive\QuickTest Professional)
What are the major/ important methods, functions in QTP we use realtime testing
Why do we use breakpoints in QTP?
What is system testing and what are the different types of tests you perform in system testing?
What are the automation metrice in your project?
Explain how Selenium is different from UFT?
How can you close the second opened browser?
In an interview, what r the general questions asked in QTP? pls give me anwser to this question?
How to find operating system information using the qtp script?
If you giving priority as p0, as a developer if I give priority as p2, What happens In user defined function ?
Describe function procedure in vbscript.