码迷,mamicode.com
首页 > 其他好文 > 详细

找到元素路径

时间:2017-03-01 16:43:21      阅读:187      评论:0      收藏:0      [点我收藏+]

标签:使用   strong   get   页面   F12   str   targe   lin   返回   

1: 通过chrome浏览器找到元素的xpath 或者css路径。
chrome->左键页面元素->审查元素->左键HTML元素->copy css或者xpath地址
2: 通过chrome F12 console检测xpath地址或者css地址是否返回正确元素
xpath使用 $x("xpath") css使用$("css")

找到元素路径

标签:使用   strong   get   页面   F12   str   targe   lin   返回   

原文地址:http://www.cnblogs.com/srialy/p/6484538.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!