selenium2library期望值关键字总结
最近沉迷于selenium2library无法自拔,但是关键字太多,不能一一记下来,所以对期望值的关键字对做了一个整理,方便查看。
Element Should Be Visible
Element Should Not Be Visible
元素可见和不可见,可用id或者name或者其他来定位
适用于分级分权Element Text Should Be
Element Should Not Contain
元素包含和不包含Page should contain
Page should not contain
页面应该包含某文字
参数:文字Page should contain button
Page should not contain button
页面应该包含某按钮
参数:定位到button的id或者name或者其他Page should contain checkbox
Page should not contain checkbox
页面应该包含某选项框(单选)
参数:定位到checkbox的id或者name或者其他Page should contain element
Page should not contain element
页面应该包含某元素
参数:定位到某元素的id或者name或者其他Page should contain Image
Page should not contain Image
页面应该包含某图片Page should contain Iink
Page should not contain Iin

本文总结了Selenium2Library中的期望值关键字,包括Element Should Be Visible、Element Should Not Be Visible等,用于检查元素的可见性、页面是否包含特定文本、按钮、链接等。这些关键字对于自动化测试中的页面交互验证十分有用。
1793

被折叠的 条评论
为什么被折叠?



