UNPKG

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 426 B
module.exports = function (context, volume) { return function (done) { context.driver.wait(function () { return context.driver.executeScript('return ' + volume + ' <= window.Result.volume;'); }, context.timeout) .then(function (result) { expect(result).toBe(true); }) .thenCatch(done.fail) .thenFinally(done); }; };