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
Answer / rico
Set Wsh = CreateObject("Wscript.Shell")
Wsh.run "iexplore google.com"
Is This Answer Correct ? | 13 Yes | 3 No |
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 |
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 |
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 |
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 |
Answer / manchk
Set Wsh = CreateObject("Wscript.Shell")
Wsh.run "cmd iexplore google.com"
Is This Answer Correct ? | 1 Yes | 1 No |
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 |
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 |
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 |
How you can write contexts to text file in qtp?
what is difference between Mandatrary proparties and Assistive proparties? Explain
Tell me the situations where we will use Data Driven?
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...
Can anyone explain about Keyword driven framework in detail and how to use it in case of any project
In ordinal identifier there r 3 options available. Which one will be enabled first when ordinal identifier is invoked.
What is time parameter?
How to add verification steps to tests?
how we will use output values in qtp? is there any possibulity by descriptive programming?
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
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
what are the mandatory and assistive properties of objects in QTP?What is attached text?Plz assist me with proper answer.