Forum Discussion

msap's avatar
msap
Frequent Contributor
6 years ago

how to read value from combobox list?

any suggestions pls:

Read value from the combobox list:

options for status field: active, inactive, cancelled.

 

 

4 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    Is there any properly like wText?  That's where I would start.

     

    I'd give you more specific suggestions, but I don't know the specifics of what type of application  (Web, Desktop, Mobile), what component type/class it is, what you've tried, etc.

    • msap's avatar
      msap
      Frequent Contributor

      yes, wText.Its a Desktop Testing.

      How should I define list of options for status field:Active;Inactive;Cancelled.


      layoutControl1.cbStatus.Click();
      ComboBoxPopupListBox.ClickItem("Inactive");
      MainMenu.Click("Save Changes");

      Grid=frameworkComboBoxPopupListBox;
      if(Grid.wItem(i) == "Active")
      Log.Message("Can Create Acc")
      else
      Log.Message("Cannot Create Ac")