資源推薦:
視頻資源: 軟件測試相關係列視頻
社區資源: 自動化測試交流羣
簡介
Selenium爲用戶提供了大量的Selenese命令,可以非常方便的爲用戶編寫腳本實用,其中實際場景運用需要的並不多,爲了能更好的利用這些命令,我對幾乎所有Selenese命令做了分類,分類內容如下:
包含操作頁面元素常用命令,以及一些不常用到的高級使用命令
對鼠標鍵盤事件控制命令
wait相關命令
veriy相關命令
assert相關命令
store存儲器相關命令
Part III wait相關命令彙總:
waitForAlert | waitForNotEval |
waitForAlertNotPresent | waitForNotExpression |
waitForAlertPresent | waitForNotHtmlSource |
waitForAllButtons | waitForNotLocation |
waitForAllFields | waitForNotMouseSpeed |
waitForAllLinks | waitForNotOrdered |
waitForAllWindowIds | waitForNotPrompt |
waitForAllWindowNames | waitForNotSelectOptions |
waitForAllWindowTitles | waitForNotSelectedId |
waitForAttribute | waitForNotSelectedIds |
waitForAttributeFromAllWindows | waitForNotSelectedIndex |
waitForBodyText | waitForNotSelectedIndexes |
waitForChecked | waitForNotSelectedLabel |
waitForCondition | waitForNotSelectedLabels |
waitForConfirmation | waitForNotSelectedValue |
waitForConfirmationNotPresent | waitForNotSelectedValues |
waitForConfirmationPresent | waitForNotSomethingSelected |
waitForCookie | waitForNotSpeed |
waitForCookieByName | waitForNotTable |
waitForCookieNotPresent | waitForNotText |
waitForCookiePresent | waitForNotTitle |
waitForCursorPosition | waitForNotValue |
waitForEditable | waitForNotVisible |
waitForElementHeight | waitForNotWhetherThisFrameMatchFrameExpression |
waitForElementIndex | waitForNotWhetherThisWindowMatchWindowExpression |
waitForElementNotPresent | waitForNotXpathCount |
waitForElementPositionLeft | waitForOrdered |
waitForElementPositionTop | waitForPageToLoad |
waitForElementPresent | waitForPopUp |
waitForElementWidth | waitForPrompt |
waitForEval | waitForPromptNotPresent |
waitForExpression | waitForPromptPresent |
waitForFrameToLoad | waitForSelectOptions |
waitForHtmlSource | waitForSelectedId |
waitForLocation | waitForSelectedIds |
waitForMouseSpeed | waitForSelectedIndex |
waitForNotAlert | waitForSelectedIndexes |
waitForNotAllButtons | waitForSelectedLabel |
waitForNotAllFields | waitForSelectedLabels |
waitForNotAllLinks | waitForSelectedValue |
waitForNotAllWindowIds | waitForSelectedValues |
waitForNotAllWindowNames | waitForSomethingSelected |
waitForNotAllWindowTitles | waitForSpeed |
waitForNotAttribute | waitForTable |
waitForNotAttributeFromAllWindows | waitForText |
waitForNotBodyText | waitForTextNotPresent |
waitForNotChecked | waitForTextPresent |
waitForNotConfirmation | waitForTitle |
waitForNotCookie | waitForValue |
waitForNotCookieByName | waitForVisible |
waitForNotCursorPosition | waitForWhetherThisFrameMatchFrameExpression |
waitForNotEditable | waitForWhetherThisWindowMatchWindowExpression |
waitForNotElementHeight | waitForXpathCount |
waitForNotElementIndex | windowFocus |
waitForNotElementPositionLeft | windowFocusAndWait |
waitForNotElementPositionTop | windowMaximize |
waitForNotElementWidth | windowMaximizeAndWait |