How to use the wd.Module function in wd

To help you get started, we’ve selected a few wd examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sebv / wd-tractor / lib / main.js View on Github external
var wd = require('wd');
var WdTractor = require('./wd_tractor')(wd);

wd.setBaseClasses(WdTractor.Webdriver, WdTractor.Element);

wd.Module = function(code) {
  this.code = code;
};

module.exports = wd;