Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get runtime value into a variable
#1
Solved: 10 Years, 9 Months ago
Hi can someone tell me how to put runtime property values of any objects into a varuable.
I have parameterize a weblist. This selected value of each iteration i want to put into a variable .
Suppose I parameterize a weblist which has following values

1 2000
2 3000
3 3000
4 4000

When it takes first value i want to perform some calculation which takes the value of current itteration add with another variable and dissplay the addition.

Thanks and Regards

Sudhir
Reply
#2
Solved: 10 Years, 9 Months ago
Pick the run time value by their index#1/2/3 etc

Code:
Browser("Browser").Page("Page").WebList("ListName").GetItem(2)
Reply
#3
Solved: 10 Years, 9 Months ago
Hi Preeti,
Thanks a lot.
Reply
#4
Solved: 10 Years, 9 Months ago
Hi Sudhir & Preethi ,

For retrieving the run time property value of weblist or any object , we should use the "GetROProperty()"

Infact "GetItem(index)" is used for returning the value of item with specified Index.

So u can use the following way:

Code:
Browser("Browser").Page("Page").WebList("ListName").GetROProperty("Selection")
Try it out & see .....u will have clear picture.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)