Selenium2Library
- ${status} Run Keyword and Return Status Selenium2Library.Wait Until Page Contains Element ${Element}
- Should Be Equal ${text1} ${text2}
- Set Test Variable ${ele}
- Set Suite Variable ${ele}
- Set Global Variable ${ele}
- Run Keyword If '${status}'=='True' … keyword
- ${aaa} Get Text ${ele}
- ${ele1} Replace String ${ele2} **** ${text}
- ${ele_cnt} Get Element Count ${ele}
- :FOR ${index} IN RANGE 0 ${indexCount} \ keyword \ keyword
- ${Sindex} Convert To String ${index}
- Mouse over ${ele_btn}
- Click Element ${ele_xpath}
- ${value} Get Element Attribute ${ele_xpath} value
- Run Keyword And Ignore Error keywords
- Execute Javascript $("#${elementId}")[0].click();
- Double Click Element ${Wele_Css}
- Should Be Equal As Strings '123' '123'
- Exit For Loop
- Wait Until Page Contains Element ${eee}
- Input Text ${ele} ${text}
- Sleep 3s
- Element Attribute Should Contain Text ${ele1} class ${text}
- Choose File ${uploadbox} ${EXECDIR}${/}Project${/}resource${/}1.txt
UIAutomator2 (重写)
- Click Object ${Button}
- Click Object When Exists ${a_checkbox}
- Open Application ${Mail_Package_Name}
- Connect To Device ${DeviceID_Name}
- ${s_num} Shell Adb ${GET_DEVICE_SERIAL}
- Scroll To Object ${ele1} ${ele2}
- Long Click Object ${ele1}
自动化测试与网页交互实践
这篇博客探讨了使用Selenium2Library进行自动化测试的方法,包括等待元素出现、点击、输入文本、验证页面元素等操作。还涉及了UIAutomator2在移动应用测试中的应用,如点击对象、滑动屏幕等。
1917

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



