Skip to content

Commit 6f170e5

Browse files
committed
Documentation update for new keywords
1 parent f8df36b commit 6f170e5

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

doc/AppiumLibrary.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/AppiumLibrary/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ class AppiumLibrary(
6666
Starting with version 1.4 of the AppiumLibrary, one can pass an argument
6767
that contains a WebElement instead of a string locator. To get a WebElement,
6868
use the new `Get WebElements` or `Get WebElement` keyword.
69+
70+
For example:
71+
| @{elements} Get Webelements class=UIAButton
72+
| Click Element @{elements}[2]
73+
6974
"""
7075

7176
ROBOT_LIBRARY_SCOPE = 'GLOBAL'

src/AppiumLibrary/keywords/_element.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ def click_button(self, index_or_name):
5252
def click_text(self, text, exact_match=False):
5353
"""Click text identified by ``text``.
5454
55-
By default tries to click any text involves given ``text``, if you would
55+
By default tries to click first text involves given ``text``, if you would
5656
like to click exactly matching text, then set ``exact_match`` to `True`.
5757
58-
If there are multiple use of ``text`` use `Get Web Elements`.
58+
If there are multiple use of ``text`` use `locator` with `Get Web Elements` instead.
5959
6060
New in AppiumLibrary 1.4.
6161
"""

0 commit comments

Comments
 (0)