1. Open Chrome 

2. Right click the element that you want to get xpath

3. select "Inspector"

4. Right click the selected source code 

5. Select"Copy -> Copy Xpath"

获取web页面xpath

相关文章: