You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can click the list using mouseClick("fruitCombo") but how can I click individual items in the list? e.g. the 3rd item or the item with text 'Coconut'. Would such functionality be easy to implement in spix?
The text was updated successfully, but these errors were encountered:
I had a quick look and I think finding the location of an item in the list is tricky, as they are generated dynamically.
I think an easier way would be to not go through mouse events, but change the currentIndex of the ComboBox directly.
In a way this is cheating, but since you probably don't want to test the functionality of the ComboBox itself, but rather that other components react to the change, this could be good enough.
The way to go would then be to add a SetProperty command to Spix, similar to the current GetProperty.
What do you think?
I might have some time next week to look into this, but of course you are also welcome to contribute ;)
@qutab I played around with this a bit and after introducing the "EnterKey" command, the best option seems to be to simulate keyboard events (arrow keys) to switch between the entries in a combo box.
It first has to be opened via a mouse click though...
You could also use the new "SetProperty" command to set the currently selected item, but his won't trigger the same notifications as a selection change done via the UI...
Have a look at the extended "ReapeaterLoader" example in the branch feature/ComboBox and let me know what you think ;-)
In QML if I have a combobox e.g.:
I can click the list using
mouseClick("fruitCombo")
but how can I click individual items in the list? e.g. the 3rd item or the item with text 'Coconut'. Would such functionality be easy to implement in spix?The text was updated successfully, but these errors were encountered: