Unity3d .tap(element, x,y).perform - pressing on center of element always


I try to use Appium for testing android mobile app created using Unity3d.
I have coordinates of my element (using openCV)

My environment:

android emulator (4.4 or 5.1)
python 2.7.13
appium-python-client (installed ‘pip install appium-python-client’)

I run this code:

a1 = TouchAction(self.driver)
a1.tap(element, coordinates[‘x’], coordinates[‘y’], 2).perform()

and I see that pressing in center of element always

Help me pls :frowning: Why I can’t click using coordinates of element?

Below log from appium :

[AndroidBootstrap] Received command result from bootstrap
[AndroidBootstrap] Sending command to android: {“cmd”:“action”,“action”:“element:click”,“params”:{“elementId”:“2”,“x”:400,“y”:302}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {“cmd”:“action”,“action”:“element:click”,“params”:{“elementId”:“2”,“x”:400,“y”:302}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: click
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {“value”:true,“status”:0}
[AndroidBootstrap] Received command result from bootstrap
[MJSONWP] Responding to client with driver.performTouch() result: null
[HTTP] ← POST /wd/hub/session/3593b0c7-d8c1-4c78-a2f5-28d6cc179e1f/touch/perform 200 6252 ms - 76