Hello everybody.
I’ve a requirement where I need to run a test case on a web browser, but I need to make a zoom in on a image.
i’ve the follow code
public void Acercar(def params){
MultiTouchAction multiTouch = new MultiTouchAction(Driver.driver);
MobileElement element = (MobileElement) Elementos.find(params, Driver.driver
int y = element.getCenter().getY();
int x = element.getCenter().getX();
TouchAction action0 = new TouchAction(Driver.driver).press(x-10, y-10).moveTo(x-20, y-20).release();
TouchAction action1 = new TouchAction(Driver.driver).press(x+10, y+10).moveTo(x+20, y+20).release();
multiTouch.add(action0).add(action1);
multiTouch.perform();
}
but when the test case tries to run it, it’s crash and say:
Method has not yet been implemented (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 5 milliseconds Build info: version: ‘3.4.0’, revision: ‘unknown’, time: ‘unknown’ System info: host: …
Also, I tried differents solutions like
driver.zoom(element);
driver.executeScript('mobile: pinch', {'id': element, 'scale': '0.5', 'velocity': 1});
but any works.
how I can do zoom on a web browser !