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

They asked by using qtp recording writing scripting

2171


Tell some commonly used Excel VBA functions?

706


I am getting the "test object property" Description properties "toolkit class" value By using "gettoproperty" in run time But my problem is how to get Ordinal Identyfier's type and value Type is index, value is 0 How can i keep this values in to required place How can i get these values in runtime I have to insert these "index" and "value" into another area Is there any script for this like "gettoproperties","Getroproperties" If anybody knows,please help me .

1820


Explain the concept of object repository and how QTP recognizes objects?

638


What is the Command used to start the QTP

1613






Mention the test steps of qtp.

631


How can I open a EXCEL file from QTP Resultviewer with reporter.ReportEvent function call. Example: Test files for details click "here". And clicking "Here" in the resultviewer will open a local EXCEL FILE.

1937


Can anyone tell me how i used QTP 9.2 use for GIS based S/w with an example?

1787


what is meant by Implicit and explicit requirements?

3734


Can anyone share/send me QTP 8.2 Crack as I had it before but now it's virus affected. Pls send me on Sawale.vijay@gmail.com Thanks, ~Vijay

2750


Explain calling sub procedure.

713


what is profile tool?

1722


What are parameterizing tests?

626


we add library file used in test via settings or through "ExecuteFile" command. when we implement framework do we make common library file and load the same for all the test cases execution?

1754


Hi How to retrieve data from web element line by line?

1659