1.若頁面該元素沒有ID

2.找出該元素父類,並拷貝出父類的class(類名)和ID

3.點擊搜索圖標,進行查找

selector內容://android.widget.LinearLayout[@resource-id="com.svw.sc.mos:id/card_detail_licence_"]/android.widget.TextView[@content-desc="textview_2667"]
其中//父類名[@resource-id="父ID'']/該元素類名[content-desc="該元素的content-desc值'']

4.點擊search,若定位成功則有元素顯示

5.返回上一級,selector中的路徑則為該元素的xpath
