Forum Discussion

halovski's avatar
halovski
Contributor
12 months ago

Menu action correct value

What value would I have to write to select any element in the drop down menu? I don't mind if I have to select it with an index or with its text value.

3 Replies

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    The method you want to use for your drop down list is ClickItem. For example,

    dropdownList.ClickItem("Electricity");

     

    PopupMenu is this UI control,

     

    • halovski's avatar
      halovski
      Contributor

      Is there a way to do that in a keyword test with the menu action operation?

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    Here's an example, which selects 'Audi' from the combo box using method ClickItem()

     

    The following keyword operations,

    MainMenu will select this,

    PopupMenu will select this,