Skip to content

Commit aec1296

Browse files
committed
Change 'text' variable name back to original one (same naming logic as in Element Should Contain -keyword)
1 parent 0683989 commit aec1296

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Selenium2Library/keywords/_element.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,21 +54,21 @@ def element_should_contain(self, locator, expected, message=''):
5454
"its text was '%s'." % (locator, expected, actual)
5555
raise AssertionError(message)
5656

57-
def element_should_not_contain(self, locator, text, message=''):
58-
"""Verifies element identified by `locator` does not contain text `text`.
57+
def element_should_not_contain(self, locator, expected, message=''):
58+
"""Verifies element identified by `locator` does not contain text `expected`.
5959
6060
`message` can be used to override the default error message.
6161
6262
Key attributes for arbitrary elements are `id` and `name`. See
6363
`Element Should Contain` for more details.
6464
"""
6565
self._info("Verifying element '%s' does not contain text '%s'."
66-
% (locator, text))
66+
% (locator, expected))
6767
actual = self._get_text(locator)
68-
if text in actual:
68+
if expected in actual:
6969
if not message:
7070
message = "Element '%s' should not contain text '%s' but " \
71-
"it did." % (locator, text)
71+
"it did." % (locator, expected)
7272
raise AssertionError(message)
7373

7474
def frame_should_contain(self, locator, text, loglevel='INFO'):

0 commit comments

Comments
 (0)