t.chain(
{ waitFor: 'storesToLoad', args: [profileController.getSomeStore()] },
{ waitFor: 'componentVisible', args: 'profiledetailwindow', timeout: 2000 },
selectComboByIndex('mywindow combobox[action=blah]', 0),
{ action: 'click', target: '>>profiles tool[action=addProfile]' },
...
);
It would be nice if Siesta provided some means to register additional handlers for new custom actions. It would look something like:
Harness.configure({
// ...
actionHandlers: [{
selectComboByIndex: function( t, combo, index ){
t.click( ... );
// ...
}
}]
});
{ action: 'selectComboByIndex', args:[ 'mywindow combobox[action=blah]', 0 ] }