1.4
Important new features and compatibility features with Selenium added in this release
Selectors now takes id
and xpath
as default so you do not need to specify if you are using id
or xpath
(which starts with //
) . Also you can now use WebElement
in addition to other locators.
Existing test cases will not be effected, no change is required 👍
- New finding elements strategy now supports directly using WebElement. Check keyword documentation for more information.
- Added default locator strategies. Default is:
id
andxpath
check library introduction for more details. Click Text
added as keyword in which you can directly click on found texts. Underlying it works on predefined xpath depending on platform.- Unicode fixes also reflected on
Page Should Contain Text
andPage Should Not Contain Text
- Getting an element text is added and its helper keywords.
New Keywords:
Keyword | Argument1 | Argument2 |
---|---|---|
Get Text | locator | |
Click Text | text | exact_match |
Element should contain text | locator | text |
Element should not contain text | locator | text |
Element text should be | locator | text |
Get Matching Xpath Count | xpath_locator | |
Xpath Should Match X Times | xpath_locator | count |
Name Change: (Breaking Change)
Get Element -> Get Webelement
Get Elements -> Get Webelements
Source distribution is available at PyPI and pip users can simply run:
# to install or upgrade to the latest release.
pip install --upgrade robotframework-appiumlibrary