android - Multiaction not working -
i trying zoom
using python-client
of appium
on android
. default method zoom
not work stating has not been implemented yet. tried multiaction
.
loc = self.element.location print loc xx, yy = loc["x"], loc["y"] xx=700 action1 = touchaction(self.driver) action1.long_press(x=xx, y=yy).move_to(x=0, y=1000).release() action2 = touchaction(self.driver) action2.long_press(x=xx, y=yy).move_to(x=0, y=-1000).release() m_action = multiaction(self.driver) m_action.add(action1, action2) m_action.perform()
but again not perform zoom.instead scrolls down list.does have idea what's wrong here.
appium logs
[androidbootstrap] [bootstrap log] [debug] got data client: {"cmd":"action","action":"element:getlocation","params":{"elementid":"83"}} [androidbootstrap] [bootstrap log] [debug] got command of type action [androidbootstrap] [bootstrap log] [debug] got command action: getlocation [androidbootstrap] [bootstrap log] [debug] returning result: {"status":0,"value":{"x":0,"y":1225}} [debug] [androidbootstrap] received command result bootstrap [mjsonwp] responding client driver.getlocation() result: {"x":0,"y":1225} [http] <-- /wd/hub/session/c1a4d17f-0dc6-4445-bfad-776ec65bddb5/element/83/location 200 26 ms - 88 [http] --> post /wd/hub/session/c1a4d17f-0dc6-4445-bfad-776ec65bddb5/touch/multi/perform {"sessionid":"c1a4d17f-0dc6-4445-bfad-776ec65bddb5","actions":[[{"action":"longpress","options":{"y":1225,"x":700,"duration":1000}},{"action":"moveto","options":{"y":1000,"x":0}},{"action":"release","options":{}}],[{"action":"longpress","options":{"y":1225,"x":700,"duration":1000}},{"action":"moveto","options":{"y":-1000,"x":0}},{"action":"release","options":{}}]]} [mjsonwp] calling appiumdriver.performmultiaction() args: [[[{"action":"longpress","o... [debug] [androidbootstrap] sending command android: {"cmd":"action","action":"performmultipointergesture","params":{"actions":[[{"action":"longpress","time":0.005,"touch":{"y":1225,"x":700,"duration":1000}},{"action":"moveto","time":0.01,"touch":{"y":2225,"x":700}}],[{"action":"longpress","time":0.005,"touch":{"y":1225,"x":700,"duration":1000}},{"action":"moveto","time":0.01,"touch":{"y":225,"x":700}}]]}} [androidbootstrap] [bootstrap log] [debug] got data client: {"cmd":"action","action":"performmultipointergesture","params":{"actions":[[{"action":"longpress","time":0.005,"touch":{"y":1225,"x":700,"duration":1000}},{"action":"moveto","time":0.01,"touch":{"y":2225,"x":700}}],[{"action":"longpress","time":0.005,"touch":{"y":1225,"x":700,"duration":1000}},{"action":"moveto","time":0.01,"touch":{"y":225,"x":700}}]]}} [androidbootstrap] [bootstrap log] [debug] got command of type action [androidbootstrap] [bootstrap log] [debug] got command action: performmultipointergesture [androidbootstrap] [bootstrap log] [debug] returning result: {"status":0,"value":"ok"} [debug] [androidbootstrap] received command result bootstrap [mjsonwp] responding client driver.performmultiaction() result: "ok" [http] <-- post /wd/hub/session/c1a4d17f-0dc6-4445-bfad-776ec65bddb5/touch/multi/perform 200 133 ms - 76 [http] --> delete /wd/hub/session/c1a4d17f-0dc6-4445-bfad-776ec65bddb5 {}
Comments
Post a Comment