Forum Discussion

OV's avatar
OV
Frequent Contributor
8 years ago

Recording fail to play

Hi,

 

In my script i'm clicking a + sign to add an object to existing object tree.I've tried to record and play the script that does that but from some reason it won't play. this is the recorded code.

 

function Test1()
{
var quickDesign_ConfigurationManager;
aqObject.CheckProperty(Aliases.QuickDesign_ConfigurationManager.HwndSource_This2.This.FunctionalItemsControl.BtnAddItem, "wState", cmpEqual, 1);
aqObject.CheckProperty(Aliases.QuickDesign_ConfigurationManager.HwndSource_This2.This.FunctionalItemsControl.BtnAddItem, "Enabled", cmpEqual, true);
aqObject.CheckProperty(Aliases.QuickDesign_ConfigurationManager.HwndSource_This2.This.FunctionalItemsControl.BtnAddItem, "Visible", cmpEqual, true);
aqObject.CheckProperty(Aliases.QuickDesign_ConfigurationManager.HwndSource_This2.This.FunctionalItemsControl.BtnAddItem, "wState", cmpEqual, 0);
quickDesign_ConfigurationManager = Aliases.QuickDesign_ConfigurationManager;
quickDesign_ConfigurationManager.HwndSource_This2.This.FunctionalItemsControl.BtnAddItem.ClickButton(cbChecked);
quickDesign_ConfigurationManager.HwndSource_PopupRoot.PopupRoot.Decorator.NonLogicalAdornerDecorator.Border.StackPanel.ItemsControl.ContentPresenter.Button2.ClickButton();
}

 

according to the log this object quickDesign_ConfigurationManager.HwndSource_PopupRoot cannot be find. what i can't understand is how tc cannot find it if it just recorded it a second ago??!!

 

attached is the log.

 

Thx

  • This issue was solved please close it,thx

  • OV's avatar
    OV
    Frequent Contributor

    This issue was solved please close it,thx