02-07-2012, 11:44 PM
(This post was last modified: 02-08-2012, 12:16 PM by rupali0205.)
Hi,
In web application, webtable (wbfgrid) is displayed with 5th column containing 7 different values in non-editable boxes. QTP identifies these as 'WebElement'.
I have selected one of the values (which is highlighted in blue after selection) in each row.
Now I want to fetch the selected value. But I am not finding any distinguishing property between selected and non-selected value.
Following snippet of code is tried to fetch the webelement value
Please help
Thanks
Rupali
In web application, webtable (wbfgrid) is displayed with 5th column containing 7 different values in non-editable boxes. QTP identifies these as 'WebElement'.
I have selected one of the values (which is highlighted in blue after selection) in each row.
Now I want to fetch the selected value. But I am not finding any distinguishing property between selected and non-selected value.
Following snippet of code is tried to fetch the webelement value
Code:
Set myWebTable = browser("title:=.*").page("title:=.*").wbfgrid("html id:=.*Grid")
a = myWebTable.ChildItem(2, 5, "WebElement", 0).getroproperty("innertext")
Thanks
Rupali