diff --git a/requests_html.py b/requests_html.py index 7ab12e0..80a8142 100644 --- a/requests_html.py +++ b/requests_html.py @@ -181,7 +181,7 @@ class BaseParser: for selection in selected ] - return _get_first_or_list(c, first) + return _get_first_or_list(elements, first) def search(self, template: str) -> Result: """Searches the :class:`Element ` for the given Parse template.