diff --git a/src/SeleniumLibrary/__init__.py b/src/SeleniumLibrary/__init__.py index 29cd21df4..b0eed1392 100644 --- a/src/SeleniumLibrary/__init__.py +++ b/src/SeleniumLibrary/__init__.py @@ -121,6 +121,10 @@ class SeleniumLibrary(DynamicCore): Notice that using the ``sizzle`` strategy or its alias ``jquery`` requires that the system under test contains the jQuery library. + + This will Click Element containing ABC text. Notice that this approach can be error prone + and you should use other locators when possible. + === Implicit XPath strategy === If the locator starts with ``//`` or ``(//``, the locator is considered @@ -129,8 +133,10 @@ class SeleniumLibrary(DynamicCore): Examples: - | `Click Element` | //div[@id="container"] | - | `Click Element` | (//div)[2] | + | `Click Element` | //div[@id="container"] | Click Div With id : container | + | `Click Element` | (//div)[2] | Click the second div in the document | + | `Click Element` | xpath=//*[contains(text(),'ABC')] | Click element containint text ABC | + The support for the ``(//`` prefix is new in SeleniumLibrary 3.0.