loc_text = 'new UiSelector().text("登陸/註冊")'
driver.find_element_by_android_uiautomator(loc_text).click()
loc_text = 'new UiSelector().textContains("登陸/註冊")'
driver.find_element_by_android_uiautomator(loc_text).click()
loc_text = 'new UiSelector().textMatches("^登陸/.*")'
driver.find_element_by_android_uiautomator(loc_text).click()
loc_text = 'new UiSelector().textStartsWith("登陸")'
driver.find_element_by_android_uiautomator(loc_text).click()
oc_id = 'new UiSelector().resourceId(" com.wm.dmall:id/net_image_view ")'
driver.find_element_by_android_uiautomator(loc_id).click()
loc_id = 'new UiSelector().resourceIdMatches(".+net_image_view ")'
driver.find_element_by_android_uiautomator(loc_id).click()
# className複數定位 loc_class = 'new UiSelector().className("android.widget.TextView")' driver.find_elements_by_android_uiautomator(loc_class)[1].click()
loc_class = 'new UiSelector().classNameMatches (".*widget.TextView")'
driver.find_elements_by_android_uiautomator(loc_class)[1].click()
loc_id = 'new UiSelector(). description("多點")' driver.find_element_by_android_uiautomator(loc_id).click()
id_text = 'resourceId("com.wm.dmall:id/funcTitle").text("待支付")'
driver.find_element_by_android_uiautomator(id_text).click()
class_text = 'className("android.widget.TextView").text("待支付")'
driver.find_element_by_android_uiautomator(class_text).click()
son = 'resourceId("com.wm.dmall:id/container").childSelector(text("個人"))'
driver.find_element_by_android_uiautomator(son).click()
brother = 'resourceId("com.wm.dmall:id/nav_item_laber_tv").fromParent(text("個人"))'
driver.find_element_by_android_uiautomator(brother).click()