se-runner-browserstack-example
Version:
Ready to run example using se-runner with grunt-se-runner and se-runner-framework-jasmine towards BrowserStack
12 lines • 402 B
JavaScript
module.exports = function (context) {
return function (done) {
context.driver.wait(function () {
return context.driver.executeScript('return window.Result.didPause;');
}, context.timeout)
.then(function (result) {
expect(result).toBe(true);
})
.thenCatch(done.fail)
.thenFinally(done);
};
};