Selenese 命令清单 - verify及assert命令

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Selenese 命令清单 - verify及assert命令相关的知识,希望对你有一定的参考价值。

点击链接加入群【悦分享测试联盟】:https://jq.qq.com/?_wv=1027&k=5DiePik


简介

    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


以上是关于Selenese 命令清单 - verify及assert命令的主要内容,如果未能解决你的问题,请参考以下文章

Selenese 命令清单 - store相关命令

Selenese 命令清单 - 页面元素操作命令

Selenese 命令清单 - 鼠标键盘事件控制命令

FinTS 2.2 (HBCI 2.2) VERIFY 命令返回 69 85

打包的时候出现 Embedded binary is not signed with the same certificate as the parent app. Verify the embedd

AS中jar包和aar包区别及导入导出