Forum Discussion

JackSparrow's avatar
JackSparrow
Frequent Contributor
9 years ago
Solved

Extracting the data from Grid-table(Windows Application) using Python

Actually I need to get total values of a single column present in the Grid Table .So first i used the below code for getting the count of Child Items and Names of it which are in  the Grid Table.

def grd ():
  Grid = Aliases.teacher_debug.frmMain.dxDockSite.TdxDockPanel.frmListDealNav.TdxDockSite.TdxLayoutDockSite.TdxDockPanel.frameList.grdGridFrame.TcxGridSite
  if Grid.Exists:
     Log.Message(Grid.Name,Grid.FullName)
     for i in range (0,Grid.ChildCount):
       countchi = Grid.Child(i)
       Log.Message(countchi.Name,"",0)

and the OutPut was Window("TcxGridSite", "", 1)

 

Am not able to understand what went wrong please guide me