
css选择器
小桔帽
这个作者很懒,什么都没留下…
展开
-
使用chrome console检查css selector/xpath的有效性
定位元素时,一般用xpath或css selector来定位,定位时可以借助chrome浏览器或firefox浏览器的firebug来直接copy selector或copy xpath。此文介绍使用chrome怎样去验证css selector或xpath的有效性。原创 2017-08-15 11:43:23 · 14467 阅读 · 0 评论 -
css selector定位元素
selenium中经常要用css selector定位元素,虽说可以用firefox的firebug&firepath直接copy元素的xpath路径,但有时还是很必要用css selector来定位,也算技多不压身吧~~系统的学习一下,也当是临阵磨枪。 一共8种方式的选择器。元素选择器根据元素的标签定位,如下:<button>OK</button&...原创 2017-08-14 18:21:21 · 7175 阅读 · 0 评论