Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
URL to capture
#6
Not Solved
Dear Sridhar,

My needs are following:
According to the URL, the password will change.
I have one identification scenario and some other scenarios where i need to confirm the password.

So i thought, in each scenario i need to confirm the password, i will capture the URL of the current page, do a IF statement and assign the value to the corresponding element.

Here is what i have tested:

Code:
Dim Env
Env = InputBox("Make your choice (INT, REC, PREX)")
If Env ="INT" Then
    Environment ("URL_ENV") = "http://www.google.com"
ElseIF  Env ="REC" Then
    Environment ("URL_ENV") = "http://www.yahoo.com"
ElseIF  Env ="PREX" Then
    Environment ("URL_ENV") = "http://www.msn.com"
Else
    Environment ("URL_ENV") = "http://www.homepage.com"
End If
Browser("Browser").Navigate (Environment ("URL_ENV"))
MsgBox Browser("Browser").GetROProperty("URL")


Do you have any other suggession?

Thank you for your help.
Reply


Messages In This Thread
URL to capture - by stevol - 05-13-2008, 08:07 PM
RE: URL to capture - by niranjan - 05-14-2008, 03:24 AM
RE: URL to capture - by stevol - 05-14-2008, 03:11 PM
RE: URL to capture - by sidartha - 05-14-2008, 04:02 PM
RE: URL to capture - by somisays - 05-14-2008, 04:25 PM
RE: URL to capture - by sidartha - 05-14-2008, 05:42 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Problems with URL as Object identifier??? jcraig26 1 3,197 02-27-2013, 05:06 PM
Last Post: anil2u
  url value sia sharma 0 2,143 07-02-2012, 12:30 PM
Last Post: sia sharma
  split the values in url ....................... rjkmr.aiht 3 4,292 05-21-2012, 06:09 PM
Last Post: Ankesh
  Invalid URL Error manavkbgupta 2 2,679 03-28-2012, 02:15 PM
Last Post: manavkbgupta
  The browser Application can't be launched. Possibly the URL is wrong.- Win.XP-IE 8. fonsecba 2 6,322 05-26-2011, 04:06 PM
Last Post: manmeet.singh81

Forum Jump:


Users browsing this thread: 1 Guest(s)