Skip to content

Commit

Permalink
[Python] Fix initialisation of ActionBuilder from ActionChains using …
Browse files Browse the repository at this point in the history
…the duration= kwarg.
  • Loading branch information
space88man committed Mar 25, 2021
1 parent 0526e3d commit e7b7e89
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions py/selenium/webdriver/common/action_chains.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,8 @@ def __init__(self, driver, duration=250):
- duration: override the default 250 msecs of DEFAULT_MOVE_DURATION in PointerInput
"""
self._driver = driver
self._duration = duration
self._actions = []
self.w3c_actions = ActionBuilder(driver, duration=self.duration)
self.w3c_actions = ActionBuilder(driver, duration=duration)

def perform(self):
"""
Expand Down

0 comments on commit e7b7e89

Please sign in to comment.