below both cods not work me
enter code here
javascriptexecutor js = (javascriptexecutor) driver; hashmap<string, string> scrollobject = new hashmap<string, string>(); scrollobject.put("direction", "down"); js.executescript("mobile: scroll", scrollobject); or javascriptexecutor js = (javascriptexecutor) driver; hashmap<string, double> scrollobject = new hashmap<string, double>(); scrollobject.put("startx", 200.00); scrollobject.put("starty", 200.00); scrollobject.put("endx", 200.00); scrollobject.put("endy", 300.00); js.executescript("mobile: scroll", scrollobject);
error occure- error running appium command: string not function command duration or timeout: 13 milliseconds
Comments
Post a Comment