Forum Discussion
What is that object? And can you provide how it was mapped - what properties were used?
Hi,
I Need Drag and Drop the Values on corresponding box on my Application means, I am Using Object Spy and Make use of that created the object
{{{var rowValue = Sys.Process("Designer").WPFObject("HwndSource: Chromelesswindow").WPFObject("Chromelesswindow").WPFObject("AdornerDecorator", "", 1).WPFObject("Border", "", 1).WPFObject("Grid", "", 1).WPFObject("DesignerTab").WPFObject("ControlDesigner", "", 1).WPFObject("Grid", "", 1).WPFObject("Border", "", 1).WPFObject("Grid", "", 1).WPFObject("TabControlDesigner").WPFObject("Grid", "", 1).WPFObject("Grid", "", 1).WPFObject("Grid", "", 1).WPFObject("DatasetDesigner").WPFObject("DataSetControlUC").WPFObject("Grid", "", 1).WPFObject("Grid", "", 1).WPFObject("Grid", "", 2).WPFObject("Border", "", 2).WPFObject("DimensionList").WPFObject("ListBoxItem", "", 2);
aqUtils.Delay(5000);
rowValue.Drag(45, 9, 326, 289);}}
and the above script is correct and works fine when runs in solo but in a group of test cases it may be fails to find object some times. but other lines of that that cases executed fine.
- tristaanogre7 years agoEsteemed Contributor
You are using a hardcoded 5 second delay... so... my suggestion (along with others) still stands. This may work JUST fine stand alone because the machine/application performance may be different due to multiple events and such. You should be using something more like WaitWPFObject to do a more dynamic wait for your component before interacting with it.