在chrome中查看xpath

来源:互联网 发布:淘宝特卖优惠券 入口 编辑:程序博客网 时间:2024/06/17 14:42

网友推荐的xpathlocator以及pshcoxpath在chrome web store上面都找不到了。 其实通过chrome自带的控制台也可以直接定位(其实没有firebug以及firepath方便啊)

open page in chrome->right click and choose "inspect element"->change tab to 'console'->input “$x(xpath)”

ex: $x("//input[@name='username']").

原创粉丝点击