Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Changing URL
#1
Solved: 11 Years, 4 Months ago
Hi,

I'm trying to change the URL after I made QTP log in to an application:

'Start Browser
Call funcOpenBrowser ("iexplore.exe", "http://xxx.xxx.com/MyApp")

'login
Call funcLoginform ("me","changeme")


At this point I wan to change the URL to:

http://www.cnn.com

Thanks
Reply
#2
Solved: 11 Years, 4 Months ago
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
Solved: 11 Years, 4 Months ago
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 4,640 11-08-2016, 09:17 PM
Last Post: Paul Rammone
  Problems with URL as Object identifier??? jcraig26 1 3,366 02-27-2013, 05:06 PM
Last Post: anil2u
  Changing QTP Class praveendasika 1 2,940 07-13-2012, 07:35 AM
Last Post: ravi.gajul
  url value sia sharma 0 2,220 07-02-2012, 12:30 PM
Last Post: sia sharma
  split the values in url ....................... rjkmr.aiht 3 4,429 05-21-2012, 06:09 PM
Last Post: Ankesh

Forum Jump:


Users browsing this thread: 2 Guest(s)