Skip to content

Commit

Permalink
[py] Trying to fix doublecllick action that fails on travis: don't mo…
Browse files Browse the repository at this point in the history
…ve mouse between parts of doubleclick
  • Loading branch information
barancev committed Sep 6, 2019
1 parent 4c609e8 commit 87384d1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions py/selenium/webdriver/common/actions/pointer_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,11 @@ def release(self):
def double_click(self, element=None):
if element:
self.move_to(element)
self.click()
self.click()
self.pointer_down(MouseButton.LEFT)
self.pointer_up(MouseButton.LEFT)
self.pointer_down(MouseButton.LEFT)
self.pointer_up(MouseButton.LEFT)
return self

def pause(self, duration=0):
self.source.create_pause(duration)
Expand Down

0 comments on commit 87384d1

Please sign in to comment.