Skip to content

Commit d8821b8

Browse files
committed
Fixing/tuning examples in docs
1 parent de23bd6 commit d8821b8

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

src/SeleniumLibrary/keywords/cookie.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ def get_cookie(self, name):
8585
natively does.
8686
8787
Example:
88-
| `Add Cookie | foo | bar |
88+
| `Add Cookie` | foo | bar |
8989
| ${cookie} = | `Get Cookie` | foo |
9090
| `Should Be Equal` | ${cookie.name} | bar |
9191
| `Should Be Equal` | ${cookie.value} | foo |
92-
| `Should Be True` | ${cookie.expiry.year} > 2016 |
92+
| `Should Be True` | ${cookie.expiry.year} > 2017 |
9393
9494
New in SeleniumLibrary 3.0.
9595
"""
@@ -109,12 +109,12 @@ def add_cookie(self, name, value, path=None, domain=None, secure=None,
109109
library or an epoch time stamp.
110110
111111
Example:
112-
| Add Cookie | foo | bar | | # Adds cookie with name foo and value bar |
113-
| Add Cookie | foo | bar | domain=example.com | # Adds cookie with example.com domain defined |
114-
| Add Cookie | foo | bar | expiry=2027-09-28 16:21:35 | # Adds cookie with expiry time defined |
115-
| Add Cookie | foo | bar | expiry=1822137695 | # Adds cookie with expiry time defined as epoch |
112+
| `Add Cookie` | foo | bar | |
113+
| `Add Cookie` | foo | bar | domain=example.com |
114+
| `Add Cookie` | foo | bar | expiry=2027-09-28 16:21:35 | # Expiry as timestamp. |
115+
| `Add Cookie` | foo | bar | expiry=1822137695 | # Expiry as epoch seconds. |
116116
117-
Prior to SeleniumLibrary 3.0 setting the expiry did not work.
117+
Prior to SeleniumLibrary 3.0 setting expiry did not work.
118118
"""
119119
new_cookie = {'name': name, 'value': value}
120120
if not is_noney(path):

src/SeleniumLibrary/keywords/element.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -735,8 +735,8 @@ def get_element_count(self, locator):
735735
always return an integer.
736736
737737
Example:
738-
| ${count} = | Get Matching Locator Count | name:div_name |
739-
| Should Be True | ${count} > 2 | |
738+
| ${count} = | `Get Element Count` | name:div_name |
739+
| `Should Be True` | ${count} > 2 | |
740740
741741
New in SeleniumLibrary 3.0.
742742
"""

src/SeleniumLibrary/keywords/selectelement.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ def get_list_items(self, locator, values=False):
3535
arguments`).
3636
3737
Example:
38-
| ${labels} = | Get List Items | mylist | |
39-
| ${values} = | Get List Items | css:#container select | values=True |
38+
| ${labels} = | `Get List Items` | mylist | |
39+
| ${values} = | `Get List Items` | css:#example select | values=True |
4040
4141
Support to return values is new in SeleniumLibrary 3.0.
4242
"""

0 commit comments

Comments
 (0)