Pergunta

Using selenium I want to get the order of items or rather list of keys of the multiselect list or dropdown. Seeing in selenium API i see that we can get the index of the selected items but I want to get the index or keys of all the items. Is it possible? If yet then how? Or if i can get the list the items index and value that also should be fine. Or anyway to get all the keys or values one at a time for the listbox/multiselect list?

Actually I want to verify that given items are in the correct order.

(Infact I want to provide a fixture to verify that given items are in order. Say for example list box contains A,B,C,D,E and some one calls this API with (new String("A,B,c,D,E"),dropDownLocator) then it should return true otherwise false.)

Nenhuma solução correta

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top