Skip to content

Commit 17e2edf

Browse files
authored
Merge pull request #158 from autoscrape-labs/fix/find-elements-relative
fix: fix call parameters order in call_function_on method
2 parents 68d9e6c + 067f541 commit 17e2edf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pydoll/elements/mixins/find_elements_mixin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,8 +482,8 @@ def _get_find_elements_by_xpath_command(self, xpath: str, object_id: str):
482482
escaped_value = self._ensure_relative_xpath(escaped_value)
483483
script = Scripts.FIND_RELATIVE_XPATH_ELEMENTS.replace('{escaped_value}', escaped_value)
484484
command = RuntimeCommands.call_function_on(
485-
object_id,
486-
script,
485+
function_declaration=script,
486+
object_id=object_id,
487487
return_by_value=False,
488488
)
489489
else:

0 commit comments

Comments
 (0)