How to work with multiple browsers when opened in the window,
write the script for it
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / nitin sharma
For working on multiple browser you have to use creationtime
or index property.
Use this code
'opening two application gmail and yahoo
Systemutil.Run"iexplore.exe"
Systemutil.Run"iexplore.exe"
Wait(10)
Browser("micclass:=Browser","creationtime:=0").Navigate"http://www.gmail.com"
Browser("micclass:=Browser","creationtime:=1").Page("micclass:=Page").Navigate"http://www.Yahoo.com"
'for closing all browser
While Browser("title:=.*","index:=0").Exist
Browser("title:=.*","index:=0").Close
Wend
Is This Answer Correct ? | 0 Yes | 2 No |
Presently i am working on QTP 8.2 Version,i want to know features in 9.2 version, because i have not sufficient time to put the effort on the 9.2 version
Kindly help me with the following queries.. -- How to recognize webtable using QTP and how to use it? -- How would one conclude that it is a web table -- For Example, if there is a web table and I am clicking on say Cell A1, how would i know that i've clicked on cell A1 -- Kindly suggest me to use the web table better
Can you write a script for to insert array elements in an excel A to Z columns only. if the number oe elements in the array is greater than the number of columns (A to Z), come to next row and proceed furthur. eah cell should contain only one array value.
I wnnt to learn about QTP Automation Framework,please give URL Address to get more information about AFW.
what is TOM in qtp?
How extensive or customized are the server logging and reporting requirements; are they considered an integral part of the system and do they require testing?
What issues come up in test automation, and how do you manage them?
How to handle exception when data table is not available in local host system or path is not correct(explain statement with example)
How Can I automate PDF forms using QTP9.2 ?
describe common problems of test automation?
How to handle Dynamic Arrays?
What is a Run-Time Data Table? Where can I find and view this table?