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
Why script error occur in between recording in qtp?
X flies from Hyd to bangalore using different methods of transportation. write the test scenarios and test cases for this?
Explain different type of event trigger option.
What is the default object synchronization timeout in qtp?
what is object and child object.. explain ..if possible give some example for better understanding ..
What are the differences between qtp and winrunner?
How you can find length of array in qtp?
I want to test my vb.net solution file using qtp. Does Qtp test only .exe file?
What is the difference between byref and byval in qtp?
What is synchronization? What are the ways you can synchronize?
What are the types of environment variables in qtp?
your coming from electrical backgroung..but y ur coming to software side?
What are the common defects found in your project? (in qtp interview)
How do you do batch testing in wr and is it possible to do in qtp, if so explain?
how many maximum number of virtual users we can create?