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 |
You have a WebTable in Web application. When you Record a Scenario using QTP, WebTable didn't recognized and also Repository is not having Webtable information. In this case How to find RowCount and Coloumn Count?
How can i use virtual objects? If have i created one new virtual object in a virtual object manager by following instructions.
Hi All, How to get repeated word in string . Thanks Balaji
Maximum synchronizing time out in QTP
What is SQL injection?
I used the below code to open QTP through VBscript?But i can unable to Invoke QTP...PLZ help me with the correct code to invoke QTP through VBS with description of the code aswell. Dim qtApp 'As QuickTest.Application 'Declare the Application object variable Dim qtTest 'As QuickTest.Test 'Declare a Test object variable Dim qtResultsOpt 'Declare a Run Results Options object variable Set qtApp = CreateObject("QuickTest.Application") 'Create the Application object qtApp.Launch 'Start QuickTest qtApp.Visible = False 'Make the QuickTest application visible qtApp.Open "C:\form", True 'Open the test in read-only mode 'set run settings for the test Set qtTest = qtApp.Test qtTest.Run 'Run the test 'WScript.StdOut.Write "Status is: " & qtTest.LastRunResults.Status 'Check the results of the test run qtTest.Close 'Close the test qtApp.quit 'Close QuickTest Pro Set qtResultsOpt = Nothing 'Release the Run Results Options object Set qtTest = Nothing 'Release the Test object Set qtApp = Nothing 'Release the Application object
you written some code in qtp for opening google.com browser and entered some text inthe search text box and clicked search button. this is ur script.. before running this script i have already opened two google.com browsers. now am running the script what will happen? script will run or what?? Thanks... Nani
How to capture a window in qtp or how to take snapshot of any window while writing script in qtp
Where u will use output checkpoint in QTP?
Create flight reservation login descriptive programing (Condition: Remove the value and substitute with a variable, and then call the validation from Excel) Plz help me....... very urgent.........
Explain about reusable actions?
i need qtp tutorial. pls send it to sridhar.k151@g mail.com