Madhi
15 years agoContributor
Count the no. of objects on a window
I am working on a desktop application. I need to count the no. of checkboxes on the screen. Is there a way to do it?
My object reference looks like:
Sys.Process("something").WPFObject("HwndSource: somethingelse").WPFObject("somethingelse").WPFObject("LayoutRoot").WPFObject("stckPnl").WPFObject("bdrTeamMembers").WPFObject("wndAddNewUser").WPFObject("StackPanel", "", 1).WPFObject("Border", "", 1).WPFObject("StackPanel", "", 1).WPFObject("sbMembers").WPFObject("xdgMember").WPFObject("Grid", "", 1).WPFObject("RecordListControl", "", 1).WPFObject("DataRecordPresenter", "", 3).WPFObject("DockPanel", "", 1).WPFObject("DataRecordCellArea", "", 1).WPFObject("VirtualizingDataRecordCellPanel", "", 1).WPFObject("CellValuePresenter", "", 1)
My object reference looks like:
Sys.Process("something").WPFObject("HwndSource: somethingelse").WPFObject("somethingelse").WPFObject("LayoutRoot").WPFObject("stckPnl").WPFObject("bdrTeamMembers").WPFObject("wndAddNewUser").WPFObject("StackPanel", "", 1).WPFObject("Border", "", 1).WPFObject("StackPanel", "", 1).WPFObject("sbMembers").WPFObject("xdgMember").WPFObject("Grid", "", 1).WPFObject("RecordListControl", "", 1).WPFObject("DataRecordPresenter", "", 3).WPFObject("DockPanel", "", 1).WPFObject("DataRecordCellArea", "", 1).WPFObject("VirtualizingDataRecordCellPanel", "", 1).WPFObject("CellValuePresenter", "", 1)