Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Changing URL
#1
Reply
#2
Should be as simple as...

Code:
'The following example uses the Navigate method to navigate to the 'Mercury Interactive Web site. Browser("Mercury Tours").Navigate ("www.merc-int.com")

That is from the QTP help documentation.
Reply
#3
Once you invoke browser with URL.

with Systemutil.Run "iexplore", "www.google.com"

it invoke the internet explorer with "www.google.com" url,

invokeapplication "path of the internet explorer/other browser"
Browser("CreationTime:=0").Navigate2 "www.google.com"

even this invokes the browser and navigate to "www.google.com"

Here, we can change url on same browser by using Navigate or Navigate2 methods... to navigate other url's

Here, you can use descriptive way or directly use the saved browser in OR.

Browser("Google").Navigate2 "www.yahoo.com" ' It navigates from google page to Yahoo page
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Page element keep changing chong67 4 5,330 11-08-2016, 09:17 PM
Last Post: Paul Rammone
  Problems with URL as Object identifier??? jcraig26 1 3,884 02-27-2013, 05:06 PM
Last Post: anil2u
  Changing QTP Class praveendasika 1 3,289 07-13-2012, 07:35 AM
Last Post: ravi.gajul
  url value sia sharma 0 2,571 07-02-2012, 12:30 PM
Last Post: sia sharma
  split the values in url ....................... rjkmr.aiht 3 4,994 05-21-2012, 06:09 PM
Last Post: Ankesh

Forum Jump:


Users browsing this thread: 1 Guest(s)