diff --git a/splinter/driver/lxmldriver.py b/splinter/driver/lxmldriver.py index e819dc62c..fab0f7d0c 100644 --- a/splinter/driver/lxmldriver.py +++ b/splinter/driver/lxmldriver.py @@ -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( diff --git a/splinter/driver/zopetestbrowser.py b/splinter/driver/zopetestbrowser.py index 775a3f099..21882c4ae 100644 --- a/splinter/driver/zopetestbrowser.py +++ b/splinter/driver/zopetestbrowser.py @@ -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(