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 optional step in qtp? How you can add optional step in qtp?
how can i sent QTP results to the Html, notefile ,xl file give me the code using g mail login page
Can anybody let me know how to test the Drag and drop feature of the column in a .net application...eg..i hav to test the drag and drog feature of a table(swftable) in a application..plze help!!
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
can any body give the banking domain concepts/links
what could go wrong with test automation?
hi i am working with vbwindow on qtp.first i am openning qtp whenever open qtp my application not open that time generated error like "Runtime error 0" and fatal error:automation error how to solve this problem pls tell me
What are the types of properties that quick test learns while recording?
Create flight reservation login descriptive programing (Condition: Remove the value and substitute with a variable, and then call the validation from Excel) Plz help me....... very urgent.........
Any body have QTP 9.5 licence key. please provide me at madhukar_dec30@yahoo.co.in
What are the automation metrice in your project?
How many ways we can parameterize data in quicktest professional (qtp)?
Will there be any standards or requirements for page appearance and/or graphics throughout a site or parts of a site?
Can we run test with out adding object in object repository? How it is possible?
How to integrate the qualitycenter with qtp