If/else statements in test cases
Posted: Fri Nov 09, 2018 11:50 am
I need an if/else statement for my test case. Here is the scenario; if this window appears click yes, if not do something else. This window appears sometimes. It is the value of target in event recorder : . Here is clicking yes button:
.
I have to implement in this method:
Any help would be appreciated.
messagebox[title=Application Update]
messagebox[title=Application Update] #yes => .x-btn-inner-default-small
I have to implement in this method:
func: function (callback) {
let t = this;
t.it('Test Case', function (t) {
t.chain(
// HERE, I NEED TO USE IF/ELSE statement.
callback
);
});
},