find_element can not find the bottom of the button element

Beep beep miles miles APP Game Center page to find the bottom of the button: I use find_elemnet Element not found, but the use of find_elment_by_xpath to find the elements

_bottom_mine 
='/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.view.View/android.widget.HorizontalScrollView/android.widget.LinearLayout/android.support.v7.app.ActionBar.Tab[5]/android.view.View/android.widget.TextView'
self.driver.find_element_by_xpath(_bottom_mine).click()


xpth absolute path can not be found in the following code element, is replaced with the above elements can not be found


_bottom_mine = (By.XPATH, "//*[contains(@text, '我的') and @id='txt_indicator']")
       
self.driver.find_element(_bottom_mine).click()

Find a reason to be seeing a blog, the first code bit
https://blog.csdn.net/qq_42395490/article/details/81056979

Published 99 original articles · won praise 43 · views 160 000 +

Guess you like

Origin blog.csdn.net/mayanyun2013/article/details/104560500