I want to open a Google page without recording a test and i
do not want to use system.Util.run command as well how do i
do this?

Answers were Sorted based on User's Feedback



I want to open a Google page without recording a test and i do not want to use system.Util.run com..

Answer / rico

Set Wsh = CreateObject("Wscript.Shell")
Wsh.run "iexplore google.com"

Is This Answer Correct ?    13 Yes 3 No

I want to open a Google page without recording a test and i do not want to use system.Util.run com..

Answer / rico

here is the one other way do this

Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = true
IE.Navigate "http://Google.Com"
Set IE = Nothing

Is This Answer Correct ?    9 Yes 0 No

I want to open a Google page without recording a test and i do not want to use system.Util.run com..

Answer / mreddy

Hi Bhavani and Reco try this.

dim wsh
Set Wsh = CreateObject("Wscript.Shell")
Wsh.run "iexplore google.com"

Regards,
Muni

Is This Answer Correct ?    4 Yes 0 No

I want to open a Google page without recording a test and i do not want to use system.Util.run com..

Answer / sanurajps

Hi,

Try this one..

Set MyObj = CreateObject("WScript.Shell")
MyObj.Run "www.google.com"


Sanu.

Is This Answer Correct ?    2 Yes 0 No

I want to open a Google page without recording a test and i do not want to use system.Util.run com..

Answer / kalyan

What Rico told is exactly correct. We can use below
function as a generic function. So when ever required we
will call them with differnt url"s.

function navbr(url)

Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = true
IE.Navigate (url)
Set IE = Nothing

end function



Any doubts I wil explain with pleasure.
mskalyan.smile@gmail.com

Is This Answer Correct ?    2 Yes 0 No

I want to open a Google page without recording a test and i do not want to use system.Util.run com..

Answer / srinivas

"invokeapplication C:/program/.../..../.." 100% it will work

Is This Answer Correct ?    1 Yes 0 No

I want to open a Google page without recording a test and i do not want to use system.Util.run com..

Answer / manchk

Set Wsh = CreateObject("Wscript.Shell")
Wsh.run "cmd iexplore google.com"

Is This Answer Correct ?    1 Yes 1 No

I want to open a Google page without recording a test and i do not want to use system.Util.run com..

Answer / prashant kumar

Kindly tell me the whole format.
I have tried this but some error like "Set Wsh is not a
valid internal or external command" is coming.

and for the answer no. 9 ,,,,,,,,, where should I need to
enter these commands ?

Keen to know the answer...............

Is This Answer Correct ?    0 Yes 0 No

I want to open a Google page without recording a test and i do not want to use system.Util.run com..

Answer / sushil

you can use command 'invokeapplication' or best way is u
can add url of application in 'run and record
setting'...there is one option 'record and run only
on'.....after setting this you start recording...and
webpage opens up automatically

Is This Answer Correct ?    0 Yes 1 No

I want to open a Google page without recording a test and i do not want to use system.Util.run com..

Answer / babu

Hi,
I executed the script mentioned above to open Google. It is
working for me.

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More QTP Interview Questions

In this bellow script QTP is not able to getting no. of Links from my Browser. Set desc=description.create desc("micclass").value="Link" Set obj=Browser("creationtime:=0").page("title:=.*").childobjects(desc) msgbox obj.count I am getting "General Run Error".Why QTP is not supporting my Browser,but its running fine in other system.Please help me to overcome this problem.

1 Answers  


i want click on a link which is in 3rd row and 2nd column of a web table.write script to execute

2 Answers   IBM,


What are the types of properties that quick test learns while recording?

0 Answers  


recording is not a good programming practice.How to write effective script without recording.Which is the correct method explain in detail

3 Answers   Infosys,


what is throw object ?

1 Answers  


In my application there is a billing thru credit card. how to validate the credit card details(min balance,credit card no,card holder name).if these details are valid then only that booking will be done.how to validate these details thru automation or manual?

1 Answers  


how to test load test and block box testing an a web based application pls give ans briefly

0 Answers   Impiger,


how to test Web application using QTP software

4 Answers   BITS,


How to define array in qtp?

0 Answers  


dears, I have one question for QTP.If my software is english and defined objects is english name. But, if my software has support MUI, under this case that my objects in the QTP can't work, because the QTP can't catch the objects name. In this case, is anybody know how to solve this problem? Thanks a lot.

2 Answers   CyberLink,


What is post recovery scenario?

0 Answers  


What is the use of text output value in quicktest professional?

0 Answers  


Categories