点击链接加入群【悦分享测试联盟】:https://jq.qq.com/?_wv=1027&k=5DiePik
简介
Selenium为用户提供了大量的Selenese命令,可以非常方便的为用户编写脚本实用,其中实际场景运用需要的并不多,为了能更好的利用这些命令,我对几乎所有Selenese命令做了分类,分类内容如下:
- 包含操作页面元素常用命令,以及一些不常用到的高级使用命令
- 对鼠标键盘事件控制命令
- wait相关命令
- veriy相关命令
- assert相关命令
- store存储器相关命令
Part I 常用命令汇总:
addLocationStrategy |
addLocationStrategyAndWait |
addScript |
addScriptAndWait |
addSelection |
addSelectionAndWait |
allowNativeXpath |
allowNativeXpathAndWait |
answerOnNextPrompt |
assignId |
assignIdAndWait |
break |
captureEntirePageScreenshot |
captureEntirePageScreenshotAndWait |
check |
checkAndWait |
chooseCancelOnNextConfirmation |
chooseOkOnNextConfirmation |
chooseOkOnNextConfirmationAndWait |
click |
clickAndWait |
clickAt |
clickAtAndWait |
close |
contextMenu |
contextMenuAndWait |
contextMenuAt |
contextMenuAtAndWait |
createCookie |
createCookieAndWait |
deleteAllVisibleCookies |
deleteAllVisibleCookiesAndWait |
deleteCookie |
deleteCookieAndWait |
doubleClick |
doubleClickAndWait |
doubleClickAt |
doubleClickAtAndWait |
echo |
fireEvent |
fireEventAndWait |
focus |
focusAndWait |
goBack |
goBackAndWait |
highlight |
highlightAndWait |
ignoreAttributesWithoutValue |
ignoreAttributesWithoutValueAndWait |
open |
openWindow |
openWindowAndWait |
pause |
refresh |
refreshAndWait |
removeAllSelections |
removeAllSelectionsAndWait |
removeScript |
removeScriptAndWait |
removeSelection |
removeSelectionAndWait |
rollup |
rollupAndWait |
runScript |
runScriptAndWait |
select |
selectAndWait |
selectWindow |
selectFrame |
selectPopUp |
selectPopUpAndWait |
deselectPopUp |
deselectPopUpAndWait |
sendKeys |
setSpeed |
setSpeedAndWait |
setTimeout |
setBrowserLogLevel |
setBrowserLogLevelAndWait |
原文地址:http://blog.51cto.com/shareku/2070773
时间: 2024-10-10 22:00:00