ContributionsMost RecentMost LikesSolutionsRe: name mapping ,change the value of an identification property No,this Index is an string property。 the problem is the value of the property cannot refresh , once be setted, no matter how many times you set, it will always the first value Re: name mapping ,change the value of an identification propertynow I know 2 solutions 1. object.RefreshMappingInfo() 2. does not depend on name mapping: var_no="13" #1~30 Sys.Process("LockControlSimulator")......WinFormsObject("BoxControl" , "" ,var_no)......ClickButton()Re: name mapping ,change the value of an identification propertyColin_McCrae,thank you very much, it helps ,TestObj.RefreshMappingInfo() now I know ,once the identification property is setted, it can not be reset, unless you restart TC ,or use TestObj.RefreshMappingInfo() this case, it is a panel with 30 buttons, parent node is BoxControl, I want to use a dynamic identification property to match one of it. "Aliases...xxx...BoxControl.index" is 1 to 30name mapping ,change the value of an identification property like the pic attachments -----------------------------------code start--------------------------------------------------- def clickbutton(): Project.Variables.var1 = "1" #time1 Aliases.LockControlSimulator.xxx.BoxControl.button1.ClickButton() Project.Variables.var1 = "2" #time2 Aliases.LockControlSimulator.xxx.BoxControl.button1.ClickButton() -----------------------------------code end--------------------------------------------------- time1 and time2 is click the same button, I wish it can click the button I set after it run, the value of the button property will always "1" ,until I restart TC How can I make the value refresh? this problem makes me cracy, help me please! SolvedRe: run selected operation is ok,but run the whole keyword test is failedthanks for Robert Martin's answer , I'll try and seeRe: run selected operation is ok,but run the whole keyword test is failedby the way, I can entirely exclude the possibility that the window was out of focus.run selected operation is ok,but run the whole keyword test is failedweb test, JAVA development. press a button to pop-up a window,then set text to a textbox in this window. when I run the keyword test ,it show "can not find the object !" at this step. and I try "run selected operation" , or highlight the textbox object ,it passed~ I am going crazy now~~~~~~~~~~~~~helpRe: web test, radom "the object does not exist"I've found the reason, it is a bug of the window ,some operation can make the window out of focus,so that TC can not find the window . If I click any part of the window manually , make it in a focused status , TC can playback correctly . thanks all the same ,Murugan Sweb test, radom "the object does not exist"web page test, JAVA developement. press a button to pop-up a window. when I playback , sometimes "the object does not exist" will throw in this step, but when I try it again once or more, it will pass. or I close the window and open it again manually ,then highlight it, it can be found. there is not any problem in NameMapping, the pop-up window was defined currectly. so what's the problem??? please help~~~~~~~~~~~~~~~~SolvedRe: 【help】catch exception in jscriptok,,,i've found the answer myself use event [OnLogError], it can be triggered when an error message is posted to the test log. -------------------------- function GeneralEvents_OnLogError(Sender, LogParams) { return_value = "ERROR"; }