From 6f170e5471a441c02388f3adcd084529ba16f8b6 Mon Sep 17 00:00:00 2001 From: serhatbolsu Date: Wed, 12 Oct 2016 17:11:50 +0300 Subject: [PATCH] Documentation update for new keywords --- doc/AppiumLibrary.html | 2 +- src/AppiumLibrary/__init__.py | 5 +++++ src/AppiumLibrary/keywords/_element.py | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/doc/AppiumLibrary.html b/doc/AppiumLibrary.html index c3a00d45..04a876d7 100644 --- a/doc/AppiumLibrary.html +++ b/doc/AppiumLibrary.html @@ -468,7 +468,7 @@ jQuery.extend({highlight:function(e,t,n,r){if(e.nodeType===3){var i=e.data.match(t);if(i){var s=document.createElement(n||"span");s.className=r||"highlight";var o=e.splitText(i.index);o.splitText(i[0].length);var u=o.cloneNode(true);s.appendChild(u);o.parentNode.replaceChild(s,o);return 1}}else if(e.nodeType===1&&e.childNodes&&!/(script|style)/i.test(e.tagName)&&!(e.tagName===n.toUpperCase()&&e.className===r)){for(var a=0;a diff --git a/src/AppiumLibrary/__init__.py b/src/AppiumLibrary/__init__.py index 9db840e1..2904d60f 100644 --- a/src/AppiumLibrary/__init__.py +++ b/src/AppiumLibrary/__init__.py @@ -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' diff --git a/src/AppiumLibrary/keywords/_element.py b/src/AppiumLibrary/keywords/_element.py index 10662a07..d28fcfcc 100644 --- a/src/AppiumLibrary/keywords/_element.py +++ b/src/AppiumLibrary/keywords/_element.py @@ -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. """