Skip to content

Commit 997ca60

Browse files
committed
Merge branch 'doc-press-key' into documentation-release
2 parents bbf3efe + 857d44d commit 997ca60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Selenium2Library/keywords/_element.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,11 +416,11 @@ def press_key(self, locator, key):
416416
"""Simulates user pressing key on element identified by `locator`.
417417
418418
`key` is either a single character, or a numerical ASCII code of the key
419-
lead by '\\'.
419+
lead by '\\\\'.
420420
421421
Examples:
422422
| Press Key | text_field | q |
423-
| Press Key | login_button | \\13 | # ASCII code for enter key |
423+
| Press Key | login_button | \\\\13 | # ASCII code for enter key |
424424
"""
425425
if key.startswith('\\') and len(key) > 1:
426426
key = self._map_ascii_key_code_to_key(int(key[1:]))

0 commit comments

Comments
 (0)