abrar22
10 years agoFrequent Contributor
Same textbox name testcomplete
I have more than 2 textbox in window. 1. WPFObject("TransitionElement", "", 1).WPFObject("TextBox", "", 1) 2: WPFObject("ConditionalContent", "", 1).WPFObject("TextBox", "", 1) I want to en...
- 10 years ago
The only thing that distinguishes one object from the other is the parent object.
Change this one line:
this.barValue= this.winCubeForm.FindChild("Name",'WPFObject("TextBox", "", 1))',MAX_CHILDREN);;
To this:
this.barValue= this.winCubeForm.FindChild(Array("Parent.Name", "Name"),Array("WPFObject('TransitionElement', '', 1)", "WPFObject('TextBox', '', 1)"),MAX_CHILDREN);;
Let me know if this helps.