Bring back the missing keywords from Selenium2Library to AppiumLibrary.
It based on AppiumLibrary and use active library instance to enhance robotframework-appiumlibrary.
Robotframework-appiumlibrary should be installed first. And just put this library in your project. And link a reference for it.
*** Settings ***
Library AppiumEnhanceLibrary.py
| Keyword | Arguments | |||
|---|---|---|---|---|
| Execute Javascript | code | |||
| Wait Until Element Is Visible | locator | timeout=None | error=None | |
| Wait Until Element Is Not Visible | locator | timeout=None | error=None | |
| Element Should Contain | locator | expected | message='' | |
| Element Should Be Visible | locator | message='' | ||
| Element Should Not Be Bisible | locator | message='' | ||
| Wait Until Element Contains | locator | text | timeout=None | error=None |
| Wait Until Element Does Not Contain | locator | text | timeout=None | error=None |
| Page Should Contain | text | |||
| Page Should Not Contain | text | |||
| Wait For Condition | condition | timeout=None | error=None | |
| Get Element Size | locator | |||
| Get Horizontal Position | locator | |||
| Get Vertical Position | locator | |||
| Get Value | locator | |||
| Get Text | locator | |||
| Mouse Down At | locator | xoffset | yoffset | |
| Mouse Up At | locator | xoffset | yoffset | |
| Drag And Drop By Offset | locator | xoffset | yoffset | |
| Get Matching Xpath Count | xpath | |||
| Select Frame | locator | |||
| Unselect Frame | locator | |||
| Get Element Attribute | attribute_locator |
Fork the project, make a change, and send a pull request!
Written by: Scen.Kang