I have a web aplication with a combobox and a table of elements. I need to write a method using codedUI that selects an element of the combobox or from the table, passing as parameter the “name” of the element is it possible?
If more information is needed, please ask me
thanks
You can record the action you want to test and then customize the auto-generated code inside the
UIMap.Designer.csfile to select the control you need. For each control you use when you record your test theCodedUi Test Buildercreates a new class inside this file. If your controls are similar (eg. control1, control2…) assign the parameter name to theSearch Propertiesof this control:To see how you can pass parameters to the CodedUI test check these links: