diff --git a/screenpy_selenium/actions/chain.py b/screenpy_selenium/actions/chain.py index 3a554e6..a7e7c53 100644 --- a/screenpy_selenium/actions/chain.py +++ b/screenpy_selenium/actions/chain.py @@ -42,7 +42,7 @@ def describe(self) -> str: def perform_as(self, the_actor: Actor) -> None: """Choreograph the Actions and direct the Actor to perform the chain.""" browser = the_actor.ability_to(BrowseTheWeb).browser - the_chain = ActionChains(browser, settings.CHAIN_DURATION) + the_chain = ActionChains(browser, duration=settings.CHAIN_DURATION) for action in self.actions: if not isinstance(action, Chainable): diff --git a/screenpy_selenium/actions/double_click.py b/screenpy_selenium/actions/double_click.py index fb2847e..c2b6a88 100644 --- a/screenpy_selenium/actions/double_click.py +++ b/screenpy_selenium/actions/double_click.py @@ -70,7 +70,7 @@ def describe(self) -> str: def perform_as(self, the_actor: Actor) -> None: """Direct the Actor to double-click on the element.""" browser = the_actor.ability_to(BrowseTheWeb).browser - the_chain = ActionChains(browser, settings.CHAIN_DURATION) + the_chain = ActionChains(browser, duration=settings.CHAIN_DURATION) self._add_action_to_chain(the_actor, the_chain) the_chain.perform() diff --git a/screenpy_selenium/actions/move_mouse.py b/screenpy_selenium/actions/move_mouse.py index 5428bc3..daed174 100644 --- a/screenpy_selenium/actions/move_mouse.py +++ b/screenpy_selenium/actions/move_mouse.py @@ -119,7 +119,7 @@ def describe(self) -> str: def perform_as(self, the_actor: Actor) -> None: """Direct the Actor to move the mouse.""" browser = the_actor.ability_to(BrowseTheWeb).browser - the_chain = ActionChains(browser, settings.CHAIN_DURATION) + the_chain = ActionChains(browser, duration=settings.CHAIN_DURATION) self._add_action_to_chain(the_actor, the_chain) the_chain.perform() diff --git a/screenpy_selenium/actions/right_click.py b/screenpy_selenium/actions/right_click.py index b08fb99..2eb75c7 100644 --- a/screenpy_selenium/actions/right_click.py +++ b/screenpy_selenium/actions/right_click.py @@ -74,7 +74,7 @@ def describe(self) -> str: def perform_as(self, the_actor: Actor) -> None: """Direct the Actor to right-click on the element.""" browser = the_actor.ability_to(BrowseTheWeb).browser - the_chain = ActionChains(browser, settings.CHAIN_DURATION) + the_chain = ActionChains(browser, duration=settings.CHAIN_DURATION) self._add_action_to_chain(the_actor, the_chain) the_chain.perform()