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

Usage

Example

this.demoTest = function (browser) {
  browser
    .useXpath() // every selector now must be xpath
    .click("//tr[@data-recordid]/span[text()='Search Text']");
};

Parameters

Name Type description
callback
Optional
function

Optional callback function to be called when the command finishes.