Skip to content

Commit

Permalink
Documentation update for new keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
serhatbolsu committed Oct 12, 2016
1 parent f8df36b commit 6f170e5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/AppiumLibrary.html

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions src/AppiumLibrary/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ class AppiumLibrary(
Starting with version 1.4 of the AppiumLibrary, one can pass an argument
that contains a WebElement instead of a string locator. To get a WebElement,
use the new `Get WebElements` or `Get WebElement` keyword.
For example:
| @{elements} Get Webelements class=UIAButton
| Click Element @{elements}[2]
"""

ROBOT_LIBRARY_SCOPE = 'GLOBAL'
Expand Down
4 changes: 2 additions & 2 deletions src/AppiumLibrary/keywords/_element.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ def click_button(self, index_or_name):
def click_text(self, text, exact_match=False):
"""Click text identified by ``text``.
By default tries to click any text involves given ``text``, if you would
By default tries to click first text involves given ``text``, if you would
like to click exactly matching text, then set ``exact_match`` to `True`.
If there are multiple use of ``text`` use `Get Web Elements`.
If there are multiple use of ``text`` use `locator` with `Get Web Elements` instead.
New in AppiumLibrary 1.4.
"""
Expand Down

0 comments on commit 6f170e5

Please sign in to comment.