Skip to content

Commit

Permalink
using keyword for argument
Browse files Browse the repository at this point in the history
  • Loading branch information
bandophahita committed Mar 5, 2024
1 parent 8ae8140 commit 4cfd7f1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion screenpy_selenium/actions/chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion screenpy_selenium/actions/double_click.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
2 changes: 1 addition & 1 deletion screenpy_selenium/actions/move_mouse.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
2 changes: 1 addition & 1 deletion screenpy_selenium/actions/right_click.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 4cfd7f1

Please sign in to comment.