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 :
I am newbie on Javascript and Siesta so I need more information. I will use if statement for if window appeared or not. I asked wrong question actually. I need that statement which states window appeared or not?
Btw, I am using this system for if/else:
t.it('Test Case', function (t) {
t.chain(
function (next) {
if (foo)
t.chain {
t.click('button:contains(Yes)', callback)
next
};
else
t.chain {
............
next
}
);
});