I have.Net application. I'm testing screen with DataGrid which was recognized by QPT as SwfObject("Grid").May be somebody met same issue ?
I need to have some methods name allows me to run throut the grid and subGrid and to capture CellValues [img]images/icons/confused.gif[/img] ...
Till now I got only one usefull method :
so it return for me Quantity of all rows ... nothing else ...
ANY ideas would be VERY aprisiated, thanks.
For those who intresting in it : I found that as soon I'll click on any Cell in my grid - command
will return value of that cell.,but I still do not have ability to do same with the loop
numOfrows = SwfWindow("XYZ").SwfTable("grid").RowCount
for i = 0 to numOfrows -1
a = SwfWindow("xyz").SwfTable("grd").GetCellData(i,1)
Hope it helps..
No infotunatly it does not work , may be becouse it is not SwfTable("Grid"). but SwfObject("Grid").
But anyway Thanks.
Is it WebApplication or WinApplication?
If WebApplication, try that:
' Get Values of second column from every row:
NumbersOfRow = Browser(BrowserName).Page(PageName).WbfGrid(GridNa me).RowCount
' First Row in the Grid is Header, so skip it by starting loop from 2
For I = 2 To NumbersOfRow
CellValue = Browser(BrowserName).Page(PageName).WbfGrid(GridNa me).GetCellData(I , 2)
To get all values of current grid, you need to implement nested loop inside of given one to pass every column in the row range
If it is WinApplication:
try the same approach with identity of parent object, where your grid is located
find out if it's a thirdparty grid control.