Selenium面试题1-八大定位元素是什么?都有哪些优缺点?
八大定位元素: #HTML例子: < input type = "text"class ="s_ipt" name="wd" id="kw" maxlength="100" autoco ...
八大定位元素: #HTML例子: < input type = "text"class ="s_ipt" name="wd" id="kw" maxlength="100" autoco ...
1、如果id是动态的,定位时那就不要用id定位。用其他方式定位2、还有一种情况就是这个元素一会在页面上方,一会在下方,飘忽不定的动态元素, 那就根据元素属性定位(元素的 tag、name的步伐属性是不 ...