cancel
Showing results for 
Search instead for 
Did you mean: 

UI5 Opa5-Trigger combobox event

Former Member
0 Kudos

Hello,

I am new to UI5 and I am currently creating some Opa5 test for an application and i am trying to simulate the selection of a combobox. I have managed to change the item selected item of the combobox to the desired one, however this process does not trigger the selectionChange event, event which is required to be triggered as some of my other controls are filled values based on my selection.  I have tried a bunch of way to fire my event but nothing seemed to work. I saw the fireSelectionChange() method for the combobox control in the documentation, but i don't think i am calling it the right way as not much seems to happen.

Any help would be much appreciated.

Thanks !

Accepted Solutions (0)

Answers (1)

Answers (1)

jamie_cawley
Advisor
Advisor
0 Kudos

You should be able to use trigger to perform the selection.

var oMyFirstItem = oMyControl.getItems()[0];

oMyFirstItem.$().trigger("tap");

Regards,

Jamie

SAP - Technology RIG