Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help on replacing the long lines..
#3
Solved: 11 Years, 4 Months ago
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:

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.


Messages In This Thread
help on replacing the long lines.. - by lotos - 08-03-2010, 12:28 PM
RE: help on replacing the long lines.. - by lotos - 08-03-2010, 02:38 PM
RE: help on replacing the long lines.. - by lotos - 08-04-2010, 12:30 PM
RE: help on replacing the long lines.. - by lotos - 03-02-2011, 01:47 PM
RE: Help on Dynamic URL - by Suba - 03-22-2011, 10:48 PM
RE: Help on Dynamic URL - by basanth27 - 03-23-2011, 06:55 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  QTP Takes Long time to Run prasaad44 4 4,889 04-10-2014, 01:53 AM
Last Post: prasaad44
  select an item from a very long drop down list vijayendra.shukla 0 2,723 12-03-2013, 09:40 PM
Last Post: vijayendra.shukla
  popup window takes a long time bistritapcv 4 3,570 04-17-2013, 09:35 PM
Last Post: bistritapcv
  Creating multiple lines under a header - SAP Fredodo 7 5,840 01-02-2013, 04:54 PM
Last Post: Saleel Prabhu
  delete blank lines in excel cell QAVA 2 5,685 12-07-2012, 09:36 PM
Last Post: elango87

Forum Jump:


Users browsing this thread: 1 Guest(s)