Skip to content

Commit 857d44d

Browse files
committed
Fixed documentation error with 'Press Key' keyword
Escaped double baskslash within keyword documentation. Apparently RF escapes characters so when it sees the double backslash is interprets this as a single backslah when indeed it should be read as a double backslash. This fixes issues #200.
1 parent bbf3efe commit 857d44d

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)