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

Answers were Sorted based on User's Feedback



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

Answer / panna lal jaiswal

We Can open as many as browser in QTP using Vb script at once
as:
Write the Below code in text pan & Click Run

for i=1 to 5
Systemutil.run"firefox.exe"

Next

Is This Answer Correct ?    12 Yes 0 No

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

Answer / 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

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

Answer / vistaraj

For i=1 to 5

set explore=createobject("InternetExplorer.Application")
explore.Visible=True
wait(2)
explore.navigate "www.timesofindia.com"

Next

Is This Answer Correct ?    3 Yes 0 No

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

Answer / sadashivbyagi

for i=1 to 5
system.utilrun/invokeappliction"ie
explore".naigate"www.google.com"
next

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More QTP Interview Questions

Which Databases supports for QTP?

3 Answers   CTS,


Can we access the java methods in qtp. Because my requirement is to access the swt(for eclipse an it is java code) methods in qtp is it possible?

0 Answers  


What is object state in trigger events,in recovery scenario.write a script to handle this.

0 Answers  


Tel me what was the automation testing process you followed?

2 Answers  


Explain the types of object repository?

0 Answers  






RECENTLY I PLACED IN QTP..HOW TO IMPROVE VB SCRIPTS KNOWLEDGE? IAM STRUGGING TO WRITE THE AUTOMATION SCRIPTS? ANY BODY TELL HOW TO IMPROVE QTP SCRIPT SKILLS?

0 Answers  


After coming to know that QTP could not identify non-standard objects, we set those non-standard objects as virtual objects using Virtual object wizard. But how can we identify that qtp could not identify non-standard objects?

6 Answers  


can any body clearly explain about hybridframework with the explanation for files what ever we come acros in this frame work?

4 Answers   Wipro,


I am a newbie to QTP / Automation testing. I want to develop a script that creates a data file automatically with proper headings using VBScript in QTP.

0 Answers   Adea Solutions,


What exactly is the difference among all the three recording modes.

2 Answers   TCS,


What is the difference between Functions and Action ?

1 Answers  


Test cases for Traffic Signals

4 Answers   AppLabs,


Categories