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 |
What is keyword view in qtp?
please tellme ordernal identifiers in QTP?
how to test one edit box using Java addin for Web Applications? write script?
While recording a login window QTP is identifying only parent window,then how can u identify the child objects.
How to creating an output value using quicktest professional (qtp)?
how to capture the run time values of web table.
does automation replace manual testing?
please send detail navigation for merging of object ripositories in QTP 8.2
3 Answers Infosys, Ordain Solutions,
how to create the varibles and how these are connect to qtp? plz tell me
Why we load add-ins in qtp?
how we connect oracle or sql data server database to qtp.
What is the process of synchronizing qtp and aut?