clf = self.isElementPresent(driver,"xpath","//android.view.View[@resource-id=‘com.jifen.qukan:id/azx‘]")
if clf is True:
print(u"所查找的元素存在于页面上!")
pictureEle = driver.find_element_by_xpath("//android.view.View[@resource-id=‘com.jifen.qukan:id/azx‘]")
TouchAction(driver).tap(pictureEle).perform().release()
else:
print(u" ")
原文:https://www.cnblogs.com/luozhongming/p/13587008.html