Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
jsfehler committed Oct 21, 2021
1 parent b2707db commit d6d1d98
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions splinter/driver/lxmldriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ def find_link_by_partial_text(self, partial_text):
"//a[contains(normalize-space(.), '%s')]" % partial_text
)

def find(self):
return self._finder_methods[self._finder_method]
def find(self, locator):
return self._finder_methods[self._finder_method](locator)

def fill(self, name, value):
warnings.warn(
Expand Down
4 changes: 2 additions & 2 deletions splinter/driver/zopetestbrowser.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,8 @@ def find_link_by_partial_text(self, partial_text):
"//a[contains(normalize-space(.), '%s')]" % partial_text
)

def find(self):
return self._finder_methods[self._finder_method]
def find(self, locator):
return self._finder_methods[self._finder_method](locator)

def fill(self, name, value):
warnings.warn(
Expand Down

0 comments on commit d6d1d98

Please sign in to comment.