Im not sure what Im doing wrong but there has be an easier way to get these items. Attached is a screen shot of the combo box I am trying to validate. And here is my code. It always fails on the 2nd method because Ranorex keeps comparing the text in the method to the text of the 1st item.
public static void Mouse_Click_ComboBoxUSMTF_20001()
{
//Your code here. Code inside this method will not be changed by the code generator.
Report.Info("Mouse Left Click item 'FormConfiguration_Wizard.ComboBoxUSMTF_2000' at 132;8.");
repo.FormConfiguration_Wizard.ComboBoxUSMTF_2000.Click("132;8");
}
public static void Validate_ListItemUSMTF_20001()
{
//Your code here. Code inside this method will not be changed by the code generator.
Report.Info("Validating AttributeEqual (Text='USMTF 2000') on item 'FormCfgwizard.ListItemUSMTF_2000'.");
Validate.Attribute(repo.FormCfgwizard.ListItemUSMTF_2000Info, "Text", "USMTF 2000");
}
public static void Validate_ListItemUSMTF_20041()
{
//Your code here. Code inside this method will not be changed by the code generator.
Report.Info("Validating AttributeEqual (Text='USMTF 2004') on item 'FormCfgwizard.ListItemUSMTF_2004'.");
Validate.Attribute(repo.FormCfgwizard.ListItemUSMTF_2004Info, "Text", "USMTF 2004");
}
public static void Validate_ListItemUSMTF_20061()
{
//Your code here. Code inside this method will not be changed by the code generator.
Report.Info("Validating AttributeEqual (Text='USMTF 2006') on item 'FormCfgwizard.ListItemUSMTF_2006'.");
Validate.Attribute(repo.FormCfgwizard.ListItemUSMTF_2006Info, "Text", "USMTF 2006");
}
public static void Validate_ListItemNot_using_ATO_ACOs1()
{
//Your code here. Code inside this method will not be changed by the code generator.
Report.Info("Validating AttributeEqual (Text='Not using ATO/ACOs') on item 'FormCfgwizard.ListItemNot_using_ATO_ACOs'.");
Validate.Attribute(repo.FormCfgwizard.ListItemNot_using_ATO_ACOsInfo, "Text", "Not using ATO/ACOs");
}
ScreenHunter_13 Dec. 17 16.39.gif