02-08-2012, 03:43 PM
Just to add more info on this...
e.g.
Following values are displayed in webelement boxes of column no. 5
val1 val2 val3 val4
Assume val2 is selected before and when I save the changes and come back to this page, val2 box is highlighted.
If i execute the below code, I will get the below output.
o/p:
val1
val2
val3
val4
I want to retrieve the value which is already selected i.e. val2. How will I get that?
e.g.
Following values are displayed in webelement boxes of column no. 5
val1 val2 val3 val4
Assume val2 is selected before and when I save the changes and come back to this page, val2 box is highlighted.
If i execute the below code, I will get the below output.
Code:
Set myWebTable = browser("title:=.*").page("title:=.*").wbfgrid("html id:=.*Grid")
For index = 2 to 8
a = myWebTable.ChildItem(2, 5, "WebElement", index).getroproperty("innertext")
print a
Next
o/p:
val1
val2
val3
val4
I want to retrieve the value which is already selected i.e. val2. How will I get that?