neha_renukdas
13 years agoOccasional Contributor
How to Find() the object by its property if its changing dynamically
Hi,
Below is the path of the oblect which I need to find. its basically a window pane with a grid in it. There are multiple grids on the screen and only one of them is active and I have to find such a window pane and right click on the gridcell.
Sys.Process("QBIS").WinFormsObject("MainMirandaConsole").WinFormsObject("MdiClient", "").WinFormsObject("UnitTest.qbis").WinFormsObject("xTabProject").WinFormsObject("XtraTabPage", "Dimensional View2").WinFormsObject("DimensionalBrowserUC").WinFormsObject("xtraScrollableControl").WinFormsObject("QuestPanel", "", 2).WinFormsObject("DimensionTableNewUC").WinFormsObject("gridControl");
From the above path, this part changes frequently:
WinFormsObject("QuestPanel", "", 1).WinFormsObject("DimensionTableNewUC").WinFormsObject("gridControl"); OR
WinFormsObject("QuestPanel", "", 3).WinFormsObject("DimensionTableNewUC").WinFormsObject("gridControl"); etc....
and to find a active grid, there is only one property of gridControl which is "BackColor.Name" and : (BackColor=(Object),Name= "GradientActive")
I tried every possibility like: used FindChild(), Used Extended find, Used Find function and searched the obj by using PropName as "BackColor.Name".... But it did not work.
Can anyone please tell me how to do it? OR please give the link, material on which this type of problem is discussed, article for the solution.... :(
Below is the path of the oblect which I need to find. its basically a window pane with a grid in it. There are multiple grids on the screen and only one of them is active and I have to find such a window pane and right click on the gridcell.
Sys.Process("QBIS").WinFormsObject("MainMirandaConsole").WinFormsObject("MdiClient", "").WinFormsObject("UnitTest.qbis").WinFormsObject("xTabProject").WinFormsObject("XtraTabPage", "Dimensional View2").WinFormsObject("DimensionalBrowserUC").WinFormsObject("xtraScrollableControl").WinFormsObject("QuestPanel", "", 2).WinFormsObject("DimensionTableNewUC").WinFormsObject("gridControl");
From the above path, this part changes frequently:
WinFormsObject("QuestPanel", "", 1).WinFormsObject("DimensionTableNewUC").WinFormsObject("gridControl"); OR
WinFormsObject("QuestPanel", "", 3).WinFormsObject("DimensionTableNewUC").WinFormsObject("gridControl"); etc....
and to find a active grid, there is only one property of gridControl which is "BackColor.Name" and : (BackColor=(Object),Name= "GradientActive")
I tried every possibility like: used FindChild(), Used Extended find, Used Find function and searched the obj by using PropName as "BackColor.Name".... But it did not work.
Can anyone please tell me how to do it? OR please give the link, material on which this type of problem is discussed, article for the solution.... :(