# Set gesture password and show pressed coordinate error using 1.6.2 appium-desktop on Android simulator

**URL:** <https://discuss.appium.io/t/set-gesture-password-and-show-pressed-coordinate-error-using-1-6-2-appium-desktop-on-android-simulator/22858>\
**Category:** Issues/Bugs\
**Created:** [July 20, 2018, 6:19am UTC](https://discuss.appium.io/t/set-gesture-password-and-show-pressed-coordinate-error-using-1-6-2-appium-desktop-on-android-simulator/22858 "2018-07-20T06:19:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Beck](https://discuss.appium.io/letter_avatar_proxy/v4/letter/b/a183cd/32.png) [@Beck](https://discuss.appium.io/u/Beck)\
**Post date:** [July 20, 2018, 6:19am UTC](https://discuss.appium.io/t/set-gesture-password-and-show-pressed-coordinate-error-using-1-6-2-appium-desktop-on-android-simulator/22858/1 "2018-07-20T06:19:45Z")

</div>

Test Environment:  
PC system: Win7  
Appium-Server Version: appium-desktop-setup-1.6.2  
Android Simulator: Nox Simulator  
Android System Version: 5.5.1  
Development Langument: Python 3.4.4

When I use python+appuim draw a gesture password on APP screen . find that move\_to(x=0, y=0) or press(x=0, y=0), appium log show the coordinate is (360, 640) ,why not left top?

Attach screenshot and log screenshot

 ![Image 5](https://discuss.appium.io/uploads/default/original/2X/3/3e4e1d90b990b653b7ec2356743a68b96812971b.png) ![Image 6](https://discuss.appium.io/uploads/default/original/2X/b/b08663d7c67b40120312c9b0a4eecbb4d6e5f685.png)

The code as below:

from appium import webdriver  
from selenium.webdriver.support.wait import WebDriverWait  
from selenium.webdriver.support import expected\_conditions as EC  
from appium.webdriver.common.mobileby import MobileBy  
from appium.webdriver.common.touch\_action import TouchAction  
import time

ta = TouchAction(driver)  
WebDriverWait(driver,30,1).until(EC.visibility\_of\_element\_located((MobileBy.ID,“com.xxzb.fenwoo:id/gesturepwd\_create\_lockview”)))  
ele = driver.find\_element\_by\_id(“com.xxzb.fenwoo:id/gesturepwd\_create\_lockview”)  
size = ele.size

start\_point = ele.location

ta.press(x=0, y=0).release().wait().perform()
