selenium2library期望值关键字总结

来源:互联网 发布:淘宝什么叫直通车 编辑:程序博客网 时间:2024/06/10 19:37

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 Iink
    页面应该包含链接

  • Page should contain Iist
    Page should not contain Iist

  • Page should contain radio button
    Page should not contain radio button
    页面应该包含某选项框(多选)
    参数:定位到checkbox的id或者name或者其他

  • Page should contain textfield
    Page should not contain textfield
    页面应该包含文本段

原创粉丝点击