Sets the locate strategy for selectors to css selector, therefore every following selector needs to be specified as css.

Usage

Parameters

Name Type description
callback
Optional
function

Optional callback function to be called when the command finishes.

Example

this.demoTest = function (browser) {
  browser
    .useCss() // we're back to CSS now
    .setValue('input[type=text]', 'nightwatch');
};