I can click the element by xpath ,but can not click by id


#1

There is an element , it’s location infomation is :

<android.widget.TextView NAF=“true” index=“3” text="" class=“android.widget.TextView” package=“com.touguyun” content-desc="" checkable=“false” checked=“false” clickable=“true” enabled=“true” focusable=“false” focused=“false” scrollable=“false” long-clickable=“false” password=“false” selected=“false” bounds="[810,1666][1080,1812]" resource-id=“com.touguyun:id/main_bottom_tools_me” instance=“16”/>

I can click this element by xpath
driver.find_element_by_xpath("//android.widget.TextView[@resource-id=“com.touguyun:id/main_bottom_tools_me”]").click()

but can not click the element by id
driver.find_element_by_id(‘com.touguyun.debug:id/main_bottom_tools_me’).click()

my code is :

from appium import webdriver
from time import sleep
desired_caps = {}
desired_caps[‘platformName’] = ‘Android’
desired_caps[‘platformVersion’] = ‘6.0’
desired_caps[‘deviceName’] = ‘Y9K0214B13002052’
desired_caps[‘appPackage’] = ‘com.touguyun’
desired_caps[‘noReset’] = True
desired_caps[‘appActivity’] = ‘com.touguyun.activity.SplashActivity_’

driver = webdriver.Remote(‘http://127.0.0.1:4723/wd/hub’, desired_caps)
driver.implicitly_wait(5)
sleep(5)
driver.find_element_by_xpath("//android.widget.TextView[@resource-id=“com.touguyun:id/main_bottom_tools_me”]").click()
driver.find_element_by_id(‘com.touguyun.debug:id/main_bottom_tools_me’).click()

envionment
python3
android :6.0
appium-server :1.9.0-beta.1
appium-client :Appium-Python-Client 0.28

What’s wrong with my case? is it a bug?