@@ -480,7 +480,7 @@ def press_key(self, locator, key):
480480 """Simulates user pressing key on element identified by `locator`.
481481
482482 `key` is either a single character, or a numerical ASCII code of the key
483- lead by '\\ '. In test data, ' \\ ' must be escaped, so use ' \\ \\ '.
483+ lead by '\\ \\ '.
484484
485485 Examples:
486486 | Press Key | text_field | q |
@@ -598,6 +598,13 @@ def page_should_not_contain_image(self, locator, message='', loglevel='INFO'):
598598 def get_matching_xpath_count (self , xpath ):
599599 """Returns number of elements matching `xpath`
600600
601+ One should not use the xpath= prefix for 'xpath'. XPath is assumed.
602+
603+ Correct:
604+ | count = | Get Matching Xpath Count | //div[@id='sales-pop']
605+ Incorrect:
606+ | count = | Get Matching Xpath Count | xpath=//div[@id='sales-pop']
607+
601608 If you wish to assert the number of matching elements, use
602609 `Xpath Should Match X Times`.
603610 """
@@ -607,6 +614,13 @@ def get_matching_xpath_count(self, xpath):
607614 def xpath_should_match_x_times (self , xpath , expected_xpath_count , message = '' , loglevel = 'INFO' ):
608615 """Verifies that the page contains the given number of elements located by the given `xpath`.
609616
617+ One should not use the xpath= prefix for 'xpath'. XPath is assumed.
618+
619+ Correct:
620+ | Xpath Should Match X Times | //div[@id='sales-pop'] | 1
621+ Incorrect:
622+ | Xpath Should Match X Times | xpath=//div[@id='sales-pop'] | 1
623+
610624 See `Page Should Contain Element` for explanation about `message` and
611625 `loglevel` arguments.
612626 """
0 commit comments