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

How you can write contexts to text file in qtp?

0 Answers  


what is difference between Mandatrary proparties and Assistive proparties? Explain

4 Answers  


Tell me the situations where we will use Data Driven?

2 Answers  


Hi, this is venkatesh. Q: I have 10 files in a folder(say D:\). Out of which there are some .txt, .xls, .doc. I want to know how to get the count of each file using qtp? If U have any ans, plz write script for that...

4 Answers   EDS,


Can anyone explain about Keyword driven framework in detail and how to use it in case of any project

4 Answers  






In ordinal identifier there r 3 options available. Which one will be enabled first when ordinal identifier is invoked.

3 Answers   Cap Gemini,


What is time parameter?

1 Answers  


How to add verification steps to tests?

1 Answers  


how we will use output values in qtp? is there any possibulity by descriptive programming?

2 Answers  


What is the diff between doing parametarisation using Data Driven wizard or manually. when do we go for manual para...and when do we use Data driver wizard..can anybody answer it ..Thanks in advance

6 Answers   Siemens,


Suppose Object name was changed in the application in the second build.I have just modified the name in the Object repository as changes in the Application. Is it possible to accure changes in the script accordingly? If so Suppose I am calling the script through function, Will the changes affect in the script(which is in the function)automatically? If not affected, tell me the solution,How to handle this. How should I change the object property name while using functions

4 Answers   Livetek,


what are the mandatory and assistive properties of objects in QTP?What is attached text?Plz assist me with proper answer.

7 Answers   MBT,


Categories