Select something from DropDown menu


#1

I have a DropDown menu and when i click while recording its all good, but when i play the suit or the test, Katlon throw error about they can’t find my element which is clicked before(some Drop Down List). I need to choose in HTML form all 5-6 DropDown menues, so the Form can pass successfuly. I am using Katlon recorder (google extension).

Thank you for answers


#2

HI, I have the same trouble. Does you find a solution since your last post?
Thank you for your answer.


#3

You may need to use the select command

Assuming you know the id attribute of the select field, e,g, MySelectID
you can select by the index of the option
Command: select
Target: id=MySelectID
Value: index=2

Or you can select by the text on the label of the option
Command: select
Target: id=MySelectID
Value: label=My Option Text

If your options have an id attribute, then you can select by id
Command: select
Target: id=MySelectID
Value: id=OptionID

If your options have a value attribute, then you can select by value
Command: select
Target: id=MySelectID
Value: value=OptionValue