.useCss() Suggest edits
Sets the locate strategy for selectors to css selector
, therefore every following selector needs to be specified as css.
Usage
Example
this.demoTest = function (browser) {
browser
.useCss() // we're back to CSS now
.setValue('input[type=text]', 'nightwatch');
};
Parameters
Name | Type | description |
---|---|---|
callback Optional |
function | Optional callback function to be called when the command finishes. |