Models | Examples |
---|---|
Display ads | Yahoo! |
Search ads |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var async = require('async'); | |
module.exports = waitFor; | |
/** | |
* waitFor port used with | |
* @see {@link https://github.com/ariya/phantomjs/blob/master/examples/waitfor.js} | |
* @see {@link https://github.com/sgentle/phantomjs-node} | |
* @callback testFx - Test function, will repeat until true or timeout limit is reached | |
* @callback onReady - Fires if/when `testFx` passes. |