05-14-2008, 05:42 PM
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:
Do you have any other suggession?
Thank you for your help.
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.