UI Figure:
Automator Screenshot
Use Xpath accessibility are unable to navigate to the "micro-channel pay"
driver.find_element_by_accessibility_id("javascript:void(0)").click() driver.find_element_by_xpath ( "// android.webkit.WebView [@ content-desc = 'Confirm Order'] /android.view.View [8] /android.view.View [2] /android.view.View [2] /android.view.View[1] "). click ()
After using the coordinates of the point:
driver.tap([(1000,1000),])
After using targeting by_android_uiautomator of the way there is no error, but did not click operation "micro-channel pay," I did not write is not right, please pass under the Great God pointing, how to use. . . :
driver.find_element_by_android_uiautomator('new UiSelector().description("微信支付")').click()
I feel do not understand is, I use the following, you can click on the "micro-channel pay," Why? ? ? :
driver.find_element_by_accessibility_id("javascript:void(0)").click()