Skip to content

Commit

Permalink
[py] Check offsets are cast to int. Fixes #7639
Browse files Browse the repository at this point in the history
  • Loading branch information
AutomatedTester committed May 15, 2020
1 parent 305add3 commit 227da4e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion py/selenium/webdriver/common/action_chains.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,9 @@ def move_to_element_with_offset(self, to_element, xoffset, yoffset):
- yoffset: Y offset to move to.
"""
if self._driver.w3c:
self.w3c_actions.pointer_action.move_to(to_element, xoffset, yoffset)
self.w3c_actions.pointer_action.move_to(to_element,
int(xoffset),
int(yoffset))
self.w3c_actions.key_action.pause()
else:
self._actions.append(
Expand Down

0 comments on commit 227da4e

Please sign in to comment.