Ask a Question

Menu action correct value

halovski
Contributor

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 3
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,

rraghvani_0-1691073316615.png

 

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

rraghvani
Champion Level 3

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

rraghvani_0-1691134418361.png

 

The following keyword operations,

rraghvani_1-1691134750424.png

MainMenu will select this,

rraghvani_2-1691134812392.png

PopupMenu will select this,

rraghvani_3-1691134868877.png

 

cancel
Showing results for 
Search instead for 
Did you mean: