I am using waitFor(). The code as below:
casper.waitFor(function check() {
    return this.evaluate(function() {
        return this.evaluate(someFunction, 'variable 1','variable 2','variable 3') === 'yes';
    });
}, function then() {
    console.log('Done');
});
Am getting this as console output
Wait timeout of 5000ms expired, exiting.
How can I increase the timeout?
EDIT: I have changed the code to
 casper.waitFor(function check() {
        return this.evaluate(function() {
            return this.evaluate(someFunction, 'variable 1','variable 2','variable 3') === 'yes';
        });
    }, function then() {
        console.log('Done');
    },10000);
It's giving me the following error:
CasperError: Invalid timeout function, exiting.
    C:/filename:1720 in _check
 
     
     
    