Not able to execute scroll action only in Galaxy S6 phone

Hello all,

I’m writing some code in python 2.7 using Appium and I’m having a problem with driver.scroll() for an specific cellphone.
I ran this code in few mobiles and it worked fine, just in this one (Galaxy S6) the scroll action is not been executed in it.
The most interesting part is that Appium return a “Responding to client with success:” message when none action was done in the cellphone.

Could someone help me to solve this problem?!
Thanks a lot in advance! :slight_smile:

Here detailed information:

Configs.:

  • Windows 7 - 32 bits
  • Java version: 1.8.0_92
  • java-client-3.4.1
  • AppiumForWindows_1_4_13_1
  • jdk-8u92-windows-i586
  • python-2.7.12
  • Appium-Python-Client 0.2

Code I’m using to scroll

The bellow code works fine for: Galaxy J5, Galaxy Win2 and MotoX Play
but it does not work for Galaxy S6.
try: # Get elements to execute a scroll scroll_destination = driver.find_element_by_id(contact_title_id) scroll_origin = driver.find_element_by_id(contact_02_title_id) # Scroll down driver.scroll(scroll_origin, scroll_destination) sleep(2) except Exception, Argument: result = error_result print 'Error: ', Argument else: print 'scroll executed'

**

Appium Log for a cellphone that works properly:

In Galaxy J5 screen scrolls ok.
`

info: [debug] Waiting up to 3000ms for condition
info: [debug] Pushing command to appium work queue: [“find”,{“strategy”:“id”,“selector”:“text_contact_corretora_name”,“context”:“”,“multiple”:false}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“id”,“selector”:“text_contact_corretora_name”,“context”:“”,“multiple”:false}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: find
info: [debug] [BOOTSTRAP] [debug] Finding text_contact_corretora_name using ID with the contextId: multiple: false
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=text_contact_corretora_name]
info: [debug] [BOOTSTRAP] [debug] Returning result: {“status”:0,“value”:{“ELEMENT”:“9”}}
info: [debug] Responding to client with success: {“status”:0,“value”:{“ELEMENT”:“9”},“sessionId”:“d334b42a-b846-4776-a4c8-26a0ede39237”}
info: ← POST /wd/hub/session/d334b42a-b846-4776-a4c8-26a0ede39237/element 200 20.561 ms - 87 {“status”:0,“value”:{“ELEMENT”:“9”},“sessionId”:“d334b42a-b846-4776-a4c8-26a0ede39237”}
info: → POST /wd/hub/session/d334b42a-b846-4776-a4c8-26a0ede39237/touch/perform {“sessionId”:“d334b42a-b846-4776-a4c8-26a0ede39237”,“actions”:[{“action”:“press”,“options”:{“y”:null,“x”:null,“element”:“9”}},{“action”:“moveTo”,“options”:{“y”:null,“x”:null,“element”:“8”}},{“action”:“release”,“options”:{}}]}
info: [debug] Pushing command to appium work queue: [“element:getLocation”,{“elementId”:“8”}]
info: [debug] Pushing command to appium work queue: [“element:getSize”,{“elementId”:“8”}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“element:getLocation”,“params”:{“elementId”:“8”}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: getLocation
info: [debug] [BOOTSTRAP] [debug] Returning result: {“status”:0,“value”:{“x”:40,“y”:451}}
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“element:getSize”,“params”:{“elementId”:“8”}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: getSize
info: [debug] [BOOTSTRAP] [debug] Returning result: {“status”:0,“value”:{“width”:528,“height”:46}}
info: [debug] Pushing command to appium work queue: [“element:getLocation”,{“elementId”:“9”}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“element:getLocation”,“params”:{“elementId”:“9”}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: getLocation
info: [debug] [BOOTSTRAP] [debug] Returning result: {“status”:0,“value”:{“x”:40,“y”:877}}
info: [debug] Pushing command to appium work queue: [“element:getSize”,{“elementId”:“9”}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“element:getSize”,“params”:{“elementId”:“9”}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: getSize
info: [debug] [BOOTSTRAP] [debug] Returning result: {“status”:0,“value”:{“width”:528,“height”:46}}
info: [debug] Pushing command to appium work queue: [“element:getLocation”,{“elementId”:“8”}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“element:getLocation”,“params”:{“elementId”:“8”}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: getLocation
info: [debug] [BOOTSTRAP] [debug] Returning result: {“status”:0,“value”:{“x”:40,“y”:451}}
info: [debug] Pushing command to appium work queue: [“element:getSize”,{“elementId”:“8”}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“element:getSize”,“params”:{“elementId”:“8”}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: getSize
info: [debug] [BOOTSTRAP] [debug] Returning result: {“status”:0,“value”:{“width”:528,“height”:46}}
info: [debug] Pushing command to appium work queue: [“element:touchDown”,{“elementId”:“9”,“x”:304,“y”:900}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“element:touchDown”,“params”:{“elementId”:“9”,“x”:304,“y”:900}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: touchDown
info: [debug] [BOOTSTRAP] [debug] Performing TouchDown using element? true x: 304, y: 900
info: [debug] [BOOTSTRAP] [debug] Returning result: {“status”:0,“value”:true}
info: [debug] Pushing command to appium work queue: [“element:touchMove”,{“elementId”:“8”,“x”:304,“y”:474}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“element:touchMove”,“params”:{“elementId”:“8”,“x”:304,“y”:474}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: touchMove
info: [debug] [BOOTSTRAP] [debug] Performing TouchMove using element? true x: 304, y: 474
info: [debug] [BOOTSTRAP] [debug] Returning result: {“status”:0,“value”:true}
info: [debug] Pushing command to appium work queue: [“element:touchUp”,{“elementId”:“8”,“x”:304,“y”:474}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“element:touchUp”,“params”:{“elementId”:“8”,“x”:304,“y”:474}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: touchUp
info: [debug] [BOOTSTRAP] [debug] Performing TouchUp using element? true x: 304, y: 474
info: [debug] [BOOTSTRAP] [debug] Returning result: {“status”:0,“value”:true}
info: [debug] Responding to client with success: {“status”:0,“value”:true,“sessionId”:“d334b42a-b846-4776-a4c8-26a0ede39237”}
info: ← POST /wd/hub/session/d334b42a-b846-4776-a4c8-26a0ede39237/touch/perform 200 296.880 ms - 76 {“status”:0,“value”:true,“sessionId”:“d334b42a-b846-4776-a4c8-26a0ede39237”}
info: → POST /wd/hub/session/d334b42a-b846-4776-a4c8-26a0ede39237/element {“using”:“id”,“sessionId”:“d334b42a-b846-4776-a4c8-26a0ede39237”,“value”:“text_contact_investfone_name”}
info: [debug] Waiting up to 3000ms for condition`

Appium Log for a cellphone that do NOT works properly:

In Galaxy S6 screen does NOT scroll.
`

info: [debug] Waiting up to 3000ms for condition
info: [debug] Pushing command to appium work queue: [“find”,{“strategy”:“id”,“selector”:“text_contact_corretora_name”,“context”:“”,“multiple”:false}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“id”,“selector”:“text_contact_corretora_name”,“context”:“”,“multiple”:false}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: find
info: [debug] [BOOTSTRAP] [debug] Finding text_contact_corretora_name using ID with the contextId: multiple: false
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=text_contact_corretora_name]
info: [debug] [BOOTSTRAP] [debug] Returning result: {“status”:0,“value”:{“ELEMENT”:“9”}}
info: [debug] Responding to client with success: {“status”:0,“value”:{“ELEMENT”:“9”},“sessionId”:“f1ca13e8-b3d7-408e-bda9-aa593c9cb46b”}
info: ← POST /wd/hub/session/f1ca13e8-b3d7-408e-bda9-aa593c9cb46b/element 200 44.558 ms - 87 {“status”:0,“value”:{“ELEMENT”:“9”},“sessionId”:“f1ca13e8-b3d7-408e-bda9-aa593c9cb46b”}
info: → POST /wd/hub/session/f1ca13e8-b3d7-408e-bda9-aa593c9cb46b/touch/perform {“sessionId”:“f1ca13e8-b3d7-408e-bda9-aa593c9cb46b”,“actions”:[{“action”:“press”,“options”:{“y”:null,“x”:null,“element”:“9”}},{“action”:“moveTo”,“options”:{“y”:null,“x”:null,“element”:“8”}},{“action”:“release”,“options”:{}}]}
info: [debug] Pushing command to appium work queue: [“element:getLocation”,{“elementId”:“8”}]
info: [debug] Pushing command to appium work queue: [“element:getSize”,{“elementId”:“8”}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“element:getLocation”,“params”:{“elementId”:“8”}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: getLocation
info: [debug] [BOOTSTRAP] [debug] Returning result: {“status”:0,“value”:{“x”:80,“y”:905}}
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“element:getSize”,“params”:{“elementId”:“8”}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: getSize
info: [debug] [BOOTSTRAP] [debug] Returning result: {“status”:0,“value”:{“width”:1056,“height”:91}}
info: [debug] Pushing command to appium work queue: [“element:getLocation”,{“elementId”:“9”}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“element:getLocation”,“params”:{“elementId”:“9”}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: getLocation
info: [debug] [BOOTSTRAP] [debug] Returning result: {“status”:0,“value”:{“x”:80,“y”:1753}}
info: [debug] Pushing command to appium work queue: [“element:getSize”,{“elementId”:“9”}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“element:getSize”,“params”:{“elementId”:“9”}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: getSize
info: [debug] [BOOTSTRAP] [debug] Returning result: {“status”:0,“value”:{“width”:1056,“height”:91}}
info: [debug] Pushing command to appium work queue: [“element:getLocation”,{“elementId”:“8”}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“element:getLocation”,“params”:{“elementId”:“8”}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: getLocation
info: [debug] [BOOTSTRAP] [debug] Returning result: {“status”:0,“value”:{“x”:80,“y”:905}}
info: [debug] Pushing command to appium work queue: [“element:getSize”,{“elementId”:“8”}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“element:getSize”,“params”:{“elementId”:“8”}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: getSize
info: [debug] [BOOTSTRAP] [debug] Returning result: {“status”:0,“value”:{“width”:1056,“height”:91}}
info: [debug] Pushing command to appium work queue: [“element:touchDown”,{“elementId”:“9”,“x”:608,“y”:1798.5}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“element:touchDown”,“params”:{“elementId”:“9”,“x”:608,“y”:1798.5}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: touchDown
info: [debug] [BOOTSTRAP] [debug] Performing TouchDown using element? true x: 608, y: 1798
info: [debug] [BOOTSTRAP] [debug] Returning result: {“status”:0,“value”:true}
info: [debug] Pushing command to appium work queue: [“element:touchMove”,{“elementId”:“8”,“x”:608,“y”:950.5}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“element:touchMove”,“params”:{“elementId”:“8”,“x”:608,“y”:950.5}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: touchMove
info: [debug] [BOOTSTRAP] [debug] Performing TouchMove using element? true x: 608, y: 950
info: [debug] [BOOTSTRAP] [debug] Returning result: {“status”:0,“value”:true}
info: [debug] Pushing command to appium work queue: [“element:touchUp”,{“elementId”:“8”,“x”:608,“y”:950.5}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“element:touchUp”,“params”:{“elementId”:“8”,“x”:608,“y”:950.5}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: touchUp
info: [debug] [BOOTSTRAP] [debug] Performing TouchUp using element? true x: 608, y: 950
info: [debug] [BOOTSTRAP] [debug] Returning result: {“status”:0,“value”:true}
info: [debug] Responding to client with success: {“status”:0,“value”:true,“sessionId”:“f1ca13e8-b3d7-408e-bda9-aa593c9cb46b”}
info: ← POST /wd/hub/session/f1ca13e8-b3d7-408e-bda9-aa593c9cb46b/touch/perform 200 450.520 ms - 76 {“status”:0,“value”:true,“sessionId”:“f1ca13e8-b3d7-408e-bda9-aa593c9cb46b”}
info: → POST /wd/hub/session/f1ca13e8-b3d7-408e-bda9-aa593c9cb46b/element {“using”:“id”,“sessionId”:“f1ca13e8-b3d7-408e-bda9-aa593c9cb46b”,“value”:“text_contact_investfone_name”}
info: [debug] Waiting up to 3000ms for condition`

Hello guys,

I’ve found a solution for my problem and I’m sharing with you. This one is not fast as driver.scroll() but it works on Galaxy S6 as well to the others phones that I’m using to test it.

If you have some different approach please share here! :slight_smile:

Here the change that I’ve made in my code:
try: # Get elements to execute a scroll scroll_destination = driver.find_element_by_id(itaucard_title_id) scroll_origin = driver.find_element_by_id(itaubroker_title_id) # Scroll action = TouchAction(driver) action.long_press(scroll_origin).move_to(scroll_destination).release() action.perform() except Exception, Argument: ...