Selenium2Library Keyword 分类整理

Selenium2 Lib Keywords :

1.Cookie

  •     Add Cookie
  •     Get Cookie Value 
  •     Get Cookies
  •     Delete All Cookies
  •     Delete Cookie

2.Page

  •     Page Should Contain
  •     Page Should Contain Button
  •     Page Should Contain Checkbox
  •     Page Should Contain Element
  •     Page Should Contain Image
  •     Page Should Contain Link
  •     Page Should Contain List
  •     Page Should Contain Radio Button
  •     Page Should Contain Textfield
  •     Page Should Not Contain
  •     Page Should Not Contain Button
  •     Page Should Not Contain Checkbox
  •     Page Should Not Contain Element
  •     Page Should Not Contain Image
  •     Page Should Not Contain Link
  •     Page Should Not Contain List
  •     Page Should Not Contain Radio Button
  •     Page Should Not Contain Textfield

3.Checkbox

  •     Checkbox Should Be Selected
  •     Checkbox Should Not Be Selected

4.Alert

  •     Alert Should Be Present
  •     Dismiss Alert
  •     Get Alert Message

5.Frame

  •     Current Frame Contains
  •     Current Frame Should Not Contain
  •     Frame Should Contain

5.Drag

  •     Drag And Drop
  •     Drag And Drop By Offset

6.Element

  •     Element Should Be Disabled
  •     Element Should Be Enabled
  •     Element Should Be Visible
  •     Element Should Not Be Visible
  •     Element Should Contain
  •     Element Should Not Contain
  •     Element Text Should Be
  •     Get Element Attribute
  •     Get Element Size

7.List & Table

  •     Get List Items
  •     Get Selected List Label
  •     Get Selected List Labels
  •     Get Selected List Value
  •     Get Selected List Values
  •     Get Text
  •     List Selection Should Be
  •     List Should Have No Selections
  •     List Windows
  •     Get Table Cell
  •     Table Cell Should Contain
  •     Table Column Should Contain
  •     Table Footer Should Contain
  •     Table Header Should Contain
  •     Table Row Should Contain
  •     Table Should Contain


8.Xpath

  •     Get Matching Xpath Count
  •     Xpath Should Match X Times

9.Windows

  •     Get Window Identifiers
  •     Get Window Names
  •     Get Window Position
  •     Get Window Size
  •     Get Window Titles
  •     Set Window Position
  •     Set Window Size
  •     Maximize Browser Window
  •     Go Back
  •     Go To

10.Location

  •     Location Should Be
  •     Location Should Contain
  •     Locator Should Match X Times 

11.Form

  •     Submit Form

12.Textarea

  •     Textarea Should Contain
  •     Textarea Value Should Be
  •     Textfield Should Contain
  •     Textfield Value Should Be

13.Title

  •     Get Title
  •     Title Should Be

14.Radio Butten

  •     Radio Button Should Be Set To
  •     Radio Button Should Not Be Selected

操作类

15.Focus & Position

  •     Focus
  •     Get Horizontal Position
  •     Get Location
  •     Get Vertical Position
  •     Mouse Down
  •     Mouse Down On Image
  •     Mouse Down On Link
  •     Mouse Out
  •     Mouse Over
  •     Mouse Up


16.Log

  •     Log Source
  •     Log Title
  •     Log Location


17.Press

  •     Press Key

 
18.Select

  •     Select All From List
  •     Select Checkbox
  •     Select Frame
  •     elect From List
  •     Select From List By Index
  •     Select From List By Label
  •     Select From List By Value
  •     Select Radio Button
  •     Select Window
  •     Unselect Checkbox
  •     Unselect Frame
  •     Unselect From List
  •     Unselect From List By Index
  •     Unselect From List By Label
  •     Unselect From List By Value


19.Selenium Configuration

  •     Set Selenium Speed
  •     Set Selenium Timeout
  •     Set Screenshot Directory
  •     Simulate
  •     Capture Page Screenshot
  •     Set Browser Implicit Wait
  •     Get Selenium Implicit Wait
  •     Get Selenium Speed
  •     Get Selenium Timeout
  •     Get Source
  •     Reload Page
  •     Switch Browser


20.Wait

  •    Wait For Condition
  •    Wait Until Element Contains
  •    Wait Until Element Does Not Contain
  •    Wait Until Element Is Enabled
  •    Wait Until Element Is Not Visible
  •    Wait Until Element Is Visible
  •    Wait Until Page Contains
  •    Wait Until Page Contains Element
  •    Wait Until Page Does Not Contain
  •    Wait Until Page Does Not Contain Element


21.Get    

  •     Get Webelement
  •     Get Webelements
  •     Get All Links
  •     Get Value


22.Input

  •     Input Password
  •     Input Text
  •     Input Text Into Prompt


23.Location Strategy

  •     Add Location Strategy
  •     Remove Location Strategy
  •     Register Keyword To Run On Failure


24.Click

  •     Click Button
  •     Click Element
  •     Click Element At Coordinates
  •     Click Image
  •     Click Link
  •     Double Click Element


25.Confirm

  •     Choose Cancel On Next Confirmation
  •     Choose Ok On Next Confirmation
  •     Confirm Action


26.Choose

  •     Choose File


27.Close

  •     Close All Browsers
  •     Close Browser
  •     Close Window


28.Clear & Delete

  •     Clear Element Text


29.Assign Id

  •     Assign Id To Element


30.Create & Open

  •     Create Webdriver
  •     Open Browser
  •     Open Context Menu


31.JavaScript

  •     Execute Async Javascript
  •     Execute Javascript

32.自定义

便于查找常用的keywords

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值