Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/SeleniumLibrary/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is worth of mention. We are trying to explain how the library is working and not trying to explain how xpath works.

and you should use other locators when possible.

=== Implicit XPath strategy ===

If the locator starts with ``//`` or ``(//``, the locator is considered
Expand All @@ -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 |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you make the column same size by adding spaces. The first two examples, column two and three needs some adjustments, because last example has longer column width.



The support for the ``(//`` prefix is new in SeleniumLibrary 3.0.

Expand Down