I think there might be a bug that prevents locating elements with the :css and :index locator - Issue 241.
You can work around the issue by getting an element collection and then getting the element at the specific index:
return element.elements(:css => 'x-combo-list-item')[index]
(Note that I think this css-selector might be wrong. It is probably meant to be .x-combo-list-item
.)
Alternatively, assuming that x-combo-list-item
is actually the element's class, you could do:
return element.element(:class => 'x-combo-list-item', :index => index)