资源推荐:

视频资源: 软件测试相关系列视频

社区资源: 自动化测试交流群


简介

    Selenium为用户提供了大量的Selenese命令,可以非常方便的为用户编写脚本实用,其中实际场景运用需要的并不多,为了能更好的利用这些命令,我对几乎所有Selenese命令做了分类,分类内容如下:


  1. 包含操作页面元素常用命令,以及一些不常用到的高级使用命令

  2. 对鼠标键盘事件控制命令

  3. wait相关命令

  4. veriy相关命令

  5. assert相关命令

  6. store存储器相关命令


Part IV verify、assert命令汇总:



verifyAlertassertAlert
verifyAlertNotPresentassertAlertNotPresent
verifyAlertPresentassertAlertPresent
verifyAllButtonsassertAllButtons
verifyAllFieldsassertAllFields
verifyAllLinksassertAllLinks
verifyAllWindowIdsassertAllWindowIds
verifyAllWindowNamesassertAllWindowNames
verifyAllWindowTitlesassertAllWindowTitles
verifyAttributeassertAttribute
verifyAttributeFromAllWindowsassertAttributeFromAllWindows
verifyBodyTextassertBodyText
verifyCheckedassertChecked
verifyConfirmationassertConfirmation
verifyConfirmationNotPresentassertConfirmationNotPresent
verifyConfirmationPresentassertConfirmationPresent
verifyCookieassertCookie
verifyCookieByNameassertCookieByName
verifyCookieNotPresentassertCookieNotPresent
verifyCookiePresentassertCookiePresent
verifyCursorPositionassertCursorPosition
verifyEditableassertEditable
verifyElementHeightassertElementHeight
verifyElementIndexassertElementIndex
verifyElementNotPresentassertElementNotPresent
verifyElementPositionLeftassertElementPositionLeft
verifyElementPositionTopassertElementPositionTop
verifyElementPresentassertElementPresent
verifyElementWidthassertElementWidth
verifyEvalassertEval
verifyExpressionassertExpression
verifyHtmlSourceassertHtmlSource
verifyLocationassertLocation
verifyMouseSpeedassertMouseSpeed
verifyNotAlertassertNotAlert
verifyNotAllButtonsassertNotAllButtons
verifyNotAllFieldsassertNotAllFields
verifyNotAllLinksassertNotAllLinks
verifyNotAllWindowIdsassertNotAllWindowIds
verifyNotAllWindowNamesassertNotAllWindowNames
verifyNotAllWindowTitlesassertNotAllWindowTitles
verifyNotAttributeassertNotAttribute
verifyNotAttributeFromAllWindowsassertNotAttributeFromAllWindows
verifyNotBodyTextassertNotBodyText
verifyNotCheckedassertNotChecked
verifyNotConfirmationassertNotConfirmation
verifyNotCookieassertNotCookie
verifyNotCookieByNameassertNotCookieByName
verifyNotCursorPositionassertNotCursorPosition
verifyNotEditableassertNotEditable
verifyNotElementHeightassertNotElementHeight
verifyNotElementIndexassertNotElementIndex
verifyNotElementPositionLeftassertNotElementPositionLeft
verifyNotElementPositionTopassertNotElementPositionTop
verifyNotElementWidthassertNotElementWidth
verifyNotEvalassertNotEval
verifyNotExpressionassertNotExpression
verifyNotHtmlSourceassertNotHtmlSource
verifyNotLocationassertNotLocation
verifyNotMouseSpeedassertNotMouseSpeed
verifyNotOrderedassertNotOrdered
verifyNotPromptassertNotPrompt
verifyNotSelectOptionsassertNotSelectOptions
verifyNotSelectedIdassertNotSelectedId
verifyNotSelectedIdsassertNotSelectedIds
verifyNotSelectedIndexassertNotSelectedIndex
verifyNotSelectedIndexesassertNotSelectedIndexes
verifyNotSelectedLabelassertNotSelectedLabel
verifyNotSelectedLabelsassertNotSelectedLabels
verifyNotSelectedValueassertNotSelectedValue
verifyNotSelectedValuesassertNotSelectedValues
verifyNotSomethingSelectedassertNotSomethingSelected
verifyNotSpeedassertNotSpeed
verifyNotTableassertNotTable
verifyNotTextassertNotText
verifyNotTitleassertNotTitle
verifyNotValueassertNotValue
verifyNotVisibleassertNotVisible
verifyNotWhetherThisFrameMatchFrameExpressionassertNotWhetherThisFrameMatchFrameExpression
verifyNotWhetherThisWindowMatchWindowExpressionassertNotWhetherThisWindowMatchWindowExpression
verifyNotXpathCountassertNotXpathCount
verifyOrderedassertOrdered
verifyPromptassertPrompt
verifyPromptNotPresentassertPromptNotPresent
verifyPromptPresentassertPromptPresent
verifySelectOptionsassertSelectOptions
verifySelectedIdassertSelectedId
verifySelectedIdsassertSelectedIds
verifySelectedIndexassertSelectedIndex
verifySelectedLabelassertSelectedIndexes
verifySelectedLabelsassertSelectedLabel
verifySelectedValueassertSelectedLabels
verifySelectedValuesassertSelectedValue
verifySomethingSelectedassertSelectedValues
verifySpeedassertSomethingSelected
verifyTableassertSpeed
verifyTextassertTable
verifyTextNotPresentassertText
verifyTextPresentassertTextNotPresent
verifyTitleassertTextPresent
verifyValueassertTitle
verifyVisibleassertValue
verifyWhetherThisFrameMatchFrameExpressionassertVisible
verifyWhetherThisWindowMatchWindowExpressionassertWhetherThisFrameMatchFrameExpression
verifyXpathCountassertWhetherThisWindowMatchWindowExpression

assertXpathCount