function clickOnSomething(button1, messageBox){
    var fieldForPlay = [
        { type: "mouseover", target: button1 },
        { type: "touchstart", target: button1 },
        { type: "mouseenter", target: button1 },
        { type: "mouseleave", target: button1 },
        { type: "touchend", target: button1 }
        //is it still needed???
        //{ type: "click", target: button1 }
    ];

    if(messageBox !== undefined){
        fieldForPlay.push({
            animation: null, delay: 1000, target: "@msg-div", fn: function (done) {
                expect(this.targetEl.dom.textContent).toMatch(messageBox);
                done();
            }
        });
    }

    ST.play(fieldForPlay);
}
/**
 * help function - correct click provided by ST.play
 */
help function - correct click provided by ST.play
help function - correct click provided by ST . play
function clickOnSomething(button1, messageBox){
    var fieldForPlay = [
        { type: "mouseover", target: button1 },
        { type: "touchstart", target: button1 },
        { type: "mouseenter", target: button1 },
        { type: "mouseleave", target: button1 },
        { type: "touchend", target: button1 }
    ];
    if(messageBox !== undefined){
        fieldForPlay.push({
            animation: null, delay: 1000, target: "@msg-div", fn: function (done) {
                expect(this.targetEl.dom.textContent).toMatch(messageBox);
                done();
            }
        });
    }
    ST.play(fieldForPlay);
}
function clickOnSomething ( button1 , messageBox ) { var fieldForPlay = [ { type : "mouseover" , target : button1 } , { type : "touchstart" , target : button1 } , { type : "mouseenter" , target : button1 } , { type : "mouseleave" , target : button1 } , { type : "touchend" , target : button1 } ] ; if ( messageBox !== undefined ) { fieldForPlay . push ( { animation : null , delay : 1000 , target : "@msg-div" , fn : function ( done ) { expect ( this . targetEl . dom . textContent ) . toMatch ( messageBox ) ; done ( ) ; } } ) ; } ST . play ( fieldForPlay ) ; }
help function - correct click provided by ST.play
help function - correct click provided by ST . play
//is it still needed??? //{ type: "click", target: button1 }