@christian-bromann/webdriverio
Version:
A nodejs bindings implementation for selenium 2.0/webdriver
23 lines (22 loc) • 622 B
JavaScript
/**
*
* Call an own function within running chain. It is mostly used to end an async BDD/TDD block
* (see example below) when running in standalone mode. Using the wdio test runner this command
* is obsolete and should not be used.
*
* <example>
:call.js
it('some title', function(done) {
client
.click('#elemA')
.setValue('.firstname','webdriverbot')
// use call to end async test spec (e.g. in Mocha or Jasmine)
.call(done);
});
* </example>
*
* @alias browser.call
* @param {Function} callback function to be called
* @type utility
*
*/