from and to is "buttons" in a slider to change the from and to time. I´m having problem how to move these buttons in webdriverio. Below is an example how i want to do it, but nothing happens.
let from = browser.element('#from');
let to = browser.element('#to');
var XCordinate = from.getLocation(); //gets current x position of from element
var yCordinate = from.getLocation(); //gets current y position of from element
from.moveToObject(XCordinate+20, yCordinate); //Move the element only in x