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
Object repositories types, which and when to use?
In qtp, explain what is crypt object
In what occasion we can specify global sheet and action sheet?
How to do call a output parameter from one action to another action??/
How the exception handling can be done using quicktest professional?
Hi! Using Descriptive Programming How do we get Parent object for an object by writing script(DP). Say, i want to get a parent object for a "Link" in a web page by writing script in Descriptive Programming.
How many scripts did you have?
any body plz send health care domain project to me with explanation any two modules on that project. mail_id: ranjith_99reddy@yahoo.co.in
How do you do batch testing in wr & is it possible to do in qtp, if so explain?
How to run an integrated test scenario using Multiple Actions? How to use the QTP Step Generator?
Hi I am new to QTP. can u please answer to my qus... suppose 3 excel sheets are there * we are trying to check for login credentials for a page. userid from excel1 , password is from excel2 whether the page is opened or not that checkpoint is result is should be stored in excel 3.... this qus i have faced in IBM technical round... please tell script for above query ... please please
How to save your test using quicktest professional (qtp)?
I want to read XML file loaded in Quality center and compare the values with the values displayed in Application (web table).How can I do that
Hello friends..... On which areas of an application we can not test with QTP
how to find that a file has been completely downloaded or not? I told that "download Complete" pop up. but he told the tool doesn't recognize the pop up