温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

Selenese 命令清单 - verify及assert命令

发布时间:2020-06-05 12:25:38 来源:网络 阅读:1352 作者:13161670059 栏目:软件技术

资源推荐:

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

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


简介

    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


向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI