Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Why script error occur in between recording in qtp?

2329


X flies from Hyd to bangalore using different methods of transportation. write the test scenarios and test cases for this?

2084


Explain different type of event trigger option.

1019


What is the default object synchronization timeout in qtp?

1270


what is object and child object.. explain ..if possible give some example for better understanding ..

2040


What are the differences between qtp and winrunner?

1042


How you can find length of array in qtp?

1068


I want to test my vb.net solution file using qtp. Does Qtp test only .exe file?

2241


What is the difference between byref and byval in qtp?

1147


What is synchronization? What are the ways you can synchronize?

1198


What are the types of environment variables in qtp?

1077


your coming from electrical backgroung..but y ur coming to software side?

1845


What are the common defects found in your project? (in qtp interview)

2111


How do you do batch testing in wr and is it possible to do in qtp, if so explain?

1013


how many maximum number of virtual users we can create?

2209