Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP basics- invoke browseer and navigate the website address
#1
Solved: 11 Years, 4 Months ago
Hi

I am new for QTP.Could you tell me how to invoke the browser and naviagate the particular site.

How to write the script for invoke the browser and navigate the particualr website?
Reply
#2
Solved: 11 Years, 4 Months ago
SysUtil.Run sURL

will navigate you to the URL directly
Reply
#3
Solved: 11 Years, 4 Months ago
SystemUtil.Run sURL
Reply
#4
Solved: 11 Years, 4 Months ago
Hi Moorthy ,

Method 1 :
Code:
Systemutil.Run "www.google.com"

Method 2 :
Code:
Dim br
Set br=CreateObject("InternerExplorer.Application")
br.Navigate "www.google.com"
Set br=Nothing
Reply
#5
Solved: 11 Years, 4 Months ago
[quote=sreekanth chilam]
Hi srikanth,
when i was trying to method 1 it isworking fine.
Method 1 :
Systemutil.Run "www.google.com"
but when i tried to method 2 system throw error.
Method 2 :
Dim br
Set br=CreateObject("InternerExplorer.Application")
br.Navigate "www.google.com"
Set br=Nothing
I have attached the screenshot.
It would be great if you resolve that one


Attached Files Image(s)
   
Reply
#6
Solved: 11 Years, 4 Months ago
vaigundamoorthy Wrote:[quote=sreekanth chilam]
Hi srikanth,
when i was trying to method 1 it isworking fine.
Method 1 :
Systemutil.Run "www.google.com"
but when i tried to method 2 system throw error.
Method 2 :
Dim br
Set br=CreateObject("InternerExplorer.Application")
br.Navigate "www.google.com"
Set br=Nothing
I have attached the screenshot.
It would be great if you resolve that one

===========================================
Moorthy,
Use this function and it can work.

Code:
Public Sub gen_Open_Browser(sURL)
  Set IE = CreateObject("InternetExplorer.Application")
  IE.Visible = True
  IE.Navigate sURL
  IE.TheaterMode = True
End Sub
Reply
#7
Solved: 11 Years, 4 Months ago
Hi Moorthy,

Just try with the below code , it works fine.

Code:
Dim br
Set br=CreateObject("InternetExplorer.Application")
br.visible=true
br.Navigate "www.google.com"
Set br=Nothing
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  QTP 11 and IE9 64bit on Win7&SP1 64bit, QTP does not recognize objects in website jpalos 4 8,723 08-27-2014, 10:11 AM
Last Post: vinod123
  How to invoke the recording of QTP using AOM(automation object model) of QTP shailesh.gcettb@gmail.com 2 4,128 05-08-2014, 10:30 AM
Last Post: Shriram
  How do I save name and email address in QTP ? Shiv Y 1 2,500 12-19-2013, 07:24 AM
Last Post: basanth27
  Get value from table out of a website Flooole 9 5,541 10-10-2013, 02:07 PM
Last Post: Flooole
  Navigate & Learn Objects Shama Ahsan 0 2,231 12-05-2012, 11:51 AM
Last Post: Shama Ahsan

Forum Jump:


Users browsing this thread: 1 Guest(s)