How to work with multiple browsers when opened in the window,
write the script for it
Answer Posted / 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 |
Post New Answer View All Answers
What is difference between Recording time object identification and Run time (Execution) time.
How to use actions in qtp ?
What are the advantages of parameterization ?
How you calling actions in qtp?
What is the use of sendkeys and what are send keys
Can you write a script to check if the folder exists or not?
Hi Sudhananda, plz send me the QTP framework with any diagram and PPTS . I want to switch to automatio, I done QTP from professional person, but he does not give me his knowledge properly. so pls help me Thaks send me on following address mirajkar.akash@gmail.com
Which features or drawbacks of QTP lead to the upgrade for a newer version?
What is smart identification in QTP?
How many types of recording modes are there?
hi Friends ,willany body tell me what is the Scope for the automation Testing inht Future is their Or not And what is the Top Most Level in the testing section according the Pay scale
What is the syntax to call one script from another?
How to delete an object from the object repository?
Hi, Hope you viewers are doing fine with good health. What are the steps and connection parameters to connect to Oracle db ? Can you connect with just the Oracle client or Oracle XE ? Cheers!!
How to Test the mainframe application?