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

Parameters

Name Type description
callback
Optional
function

Optional callback function to be called when the command finishes.

Usage

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