nightwatch
Version:
Easy to use Node.js based end-to-end testing solution for web applications using the W3C WebDriver API.
26 lines (25 loc) • 801 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const LocateStrategy = require('./_locateStrategy.js');
const Strategies = require('../../element').LocateStrategy;
/**
* Sets the locate strategy for selectors to `css selector`, therefore every following selector needs to be specified as css.
*
* @example
* this.demoTest = function (browser) {
* browser
* .useCss() // we're back to CSS now
* .setValue('input[type=text]', 'nightwatch');
* };
*
* @method useCss
* @param {function} [callback] Optional callback function to be called when the command finishes.
* @api protocol.utilities
*/
class Command extends LocateStrategy {
constructor() {
super();
this.strategy = Strategies.CSS_SELECTOR;
}
}
module.exports = Command;