refactor app directory structure and add tests

This commit is contained in:
s2
2016-11-10 16:27:26 +01:00
parent 204834ce28
commit dd88218c0e
1844 changed files with 263520 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
var util = require('util');
var locateStrategy = require('./_locateStrategy.js');
/**
* Sets the locate strategy for selectors to `recursion`, therefore every following selector needs to be an array of element objects
* This is used internally for sections of page objects which require element nesting
*
* @method useRecursion
* @param {function} [callback] Optional callback function to be called when the command finishes.
* @api commands
*/
function Command() {
this.strategy = 'recursion';
locateStrategy.call(this);
}
util.inherits(Command, locateStrategy);
module.exports = Command;