小肥羊要进步

RF定位

1.导包SeleniumLibrary 失败,红色字体

 

 

 解决方法

 

 重新导入就成功了

 

 

 

 

 

 

 

 

 

 

 

 

 

元素定位

相对路径 //form/span/input    

xpath=//form/span[2]/input

通过属性定位  xpath=//input[@autocomplete='off']

通过部分属性 xpath=//starts-with(@autocomplete,'of')]

通过文本定位 xpath=//a[text()='新闻']

 

posted on 2021-08-11 22:23  小肥羊要进步  阅读(51)  评论(0编辑  收藏  举报

导航