Selenium2Library Keyword分类整理

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

扫描二维码关注公众号,回复: 5507092 查看本文章

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

猜你喜欢

转载自blog.csdn.net/weixin_42306440/article/details/88138953