So far I have tried using
return driver.elementById(this.enterLocationTextBox).getLocation()
.then(function (location) {
el = driver.elementById(this.mobileNumberSelectedText);
var tapOpts = {
x: location.x, // in pixels from left
y: location.y + 50, // in pixels from top
element: el.value // the id of the element we want to tap
};
return driver.execute("mobile: tap", [tapOpts])
});
but I am getting error:
Error: [execute("mobile: tap",[{"x":210,"y":816}])] Error response status: 13, , UnknownError - An unknown server-side error occurred while processing the command. Selenium error: Method has not yet been implemented