How can i open 5 multiple browser at once through QTP VB
script

Answer Posted / rayudu

Give URLs in URLS.txt documents and save

Set a= createobject("scripting.filesystemobject")
set b=a.opentextfile("c:\ray\URLS.txt",1,true)
i=1
Do while not b.atendofstream
c= b.readline
systemutil.Run"iexplore"
browser("name:=Google").Navigate c
browser("text:=.*").WaitProperty "text",c,10000
loop


Or else try with it


Set a= createobject("scripting.filesystemobject")
set b=a.opentextfile("c:\ray\URLS.txt",1,true)
i=1
Do while not b.atendofstream
c= b.readline
i=i+1
systemutil.Run c
browser("text:=.*").WaitProperty "text",c,10000
loop

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is checkpoints for qtp?

524


What are the steps involved in recovery scenario wizard?

520


What are benefits of qtp?

575


in my application,validation message has in japanise language.how to validate this message is appears properly or not

1516


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.

2095






Hello friends..... On which areas of an application we can not test with QTP

1553


how to test Web application using QTP software

1329


1--How many functions u develop 2--What is an array 3-- where is ur server 4--U involved in unit testing 5--how ur test the background colour using QTP

1539


How to start recording using quicktest professional (qtp)?

591


Give me At Least 5 Differences between DOCUMENTATION OBJECT MODEL(DOM)and COMPONENT OBJECT MODEL(COM)? Interviewer said me to WRITE the difference only in points not as you WRITE a paragraph ???? only in points

1619


How to Upgrade or support firefox 2.0 version on QTP 9.0? I have installed QTP 9.0 and installed firefox 2.0. But in REcord and Run Settings, it shows firefox 1.5 in Web tab for browser selection.

1781


I want to open a Notepad window without recording a test and I do not want to use System utility Run command as well. How do I do this?

615


Explain step generator in qtp?

637


Is it possible to use two instances of UFT on the same machine? If not why?

595


How to replay a script in qtp?

612