【基本介绍】
这里我们安装xpath插件对dom/css元素进行定位。
浏览器是chrome版本 36.0.1985.125 m最新版
【流程】
1.下载安装chrome
[url]http://www.google.cn/chrome/[/url]
2.安装Xpath Finder
2.1 工具->扩展程序->浏览应用程序库/获取更多扩展程序
[url]https://chrome.google.com/webstore/category/extensions?hl=zh-CN[/url]
搜索Xpath Finder并添加
[img]http://dl2.iteye.com/upload/attachment/0099/9707/f9dc25a4-19a9-32a3-9999-c5b606bdcb0f.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0099/9713/df2f4194-bd51-3dbb-9fed-df9b1010db89.jpg[/img]
3.使用xpath
chrome已经自带了xpath/css copy,我们可以使用xpath finder进行验证
[img]http://dl2.iteye.com/upload/attachment/0099/9715/6819aaf5-eda1-348b-92a5-c38736939a77.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0099/9717/0f8d87e5-c8dc-3426-956e-4c04a89af872.jpg[/img]
这里我们安装xpath插件对dom/css元素进行定位。
浏览器是chrome版本 36.0.1985.125 m最新版
【流程】
1.下载安装chrome
[url]http://www.google.cn/chrome/[/url]
2.安装Xpath Finder
2.1 工具->扩展程序->浏览应用程序库/获取更多扩展程序
[url]https://chrome.google.com/webstore/category/extensions?hl=zh-CN[/url]
搜索Xpath Finder并添加
[img]http://dl2.iteye.com/upload/attachment/0099/9707/f9dc25a4-19a9-32a3-9999-c5b606bdcb0f.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0099/9713/df2f4194-bd51-3dbb-9fed-df9b1010db89.jpg[/img]
3.使用xpath
chrome已经自带了xpath/css copy,我们可以使用xpath finder进行验证
[img]http://dl2.iteye.com/upload/attachment/0099/9715/6819aaf5-eda1-348b-92a5-c38736939a77.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0099/9717/0f8d87e5-c8dc-3426-956e-4c04a89af872.jpg[/img]