元素id属性随机且无法用文本定位的解决方案
摘要:目前我司系统导航栏的HTML,有三个比较麻烦的问题导致我们定位非常麻烦 1.id值是随机生成的且每次模块位置变化,id值就发生变化 2.class属性是所有导航模块都相同的 3.无法使用link text方式来直接定位 我们根据class属性相同的特性,用find_elements获取到所有导航栏的
阅读全文
posted @ 2019-03-27 15:04
posted @ 2019-03-27 15:04
posted @ 2019-03-27 14:30
posted @ 2019-03-25 17:33
posted @ 2019-03-19 17:19
posted @ 2019-03-19 17:07
posted @ 2019-03-01 15:03