08-03-2010, 02:38 PM
Hi PrabhatN, thanks a lot..
I know that, but I really need the 'EnvironmentURL', because I have more than one, and I will add a comment for the line I don't need - and the object's variable vill be the same, for e.g. I will have:
and the used one will be the uncommented line
Also I will be able to call this var in next way:
I will not be able to use Browser().Page() in all my functions and classes, because It will be need of change in a lot of lines, when I will test on another environment than the firstone - from this sample.
I know that, but I really need the 'EnvironmentURL', because I have more than one, and I will add a comment for the line I don't need - and the object's variable vill be the same, for e.g. I will have:
Code:
Set EnvironmentURL = Browser("URL:=http://test.st").Page("URL:=http://test.st")
'Set EnvironmentURL = Browser("URL:=http://test.at").Page("URL:=http://test.at")
'Set EnvironmentURL = Browser("URL:=http://test.ut").Page("URL:=http://test.ut")
and the used one will be the uncommented line
Also I will be able to call this var in next way:
Code:
With EnvironmentURL
.WebEdit().Set ""
.Link().Click
End With
I will not be able to use Browser().Page() in all my functions and classes, because It will be need of change in a lot of lines, when I will test on another environment than the firstone - from this sample.