commit | fdaf00578b776d1336005c264202a7cdaa0eb178 | [log] [tgz] |
---|---|---|
author | AutomatedTester <david.burns@theautomatedtester.co.uk> | Fri May 15 11:51:50 2020 +0100 |
committer | AutomatedTester <david.burns@theautomatedtester.co.uk> | Fri May 15 11:51:50 2020 +0100 |
tree | 91ff7a0c31c99434171630a6038508dd5a9ab535 | |
parent | 2a9a5259e97be4850b12b124680e5bd990072198 [diff] |
[py] Check offsets are cast to int. Fixes #7639 Cr-Mirrored-From: https://chromium.googlesource.com/external/github.com/SeleniumHQ/selenium Cr-Mirrored-Commit: 227da4e2b0e18f578985300e31d98661d5dc8756
diff --git a/selenium/webdriver/common/action_chains.py b/selenium/webdriver/common/action_chains.py index aaae7ed..bf97fca 100644 --- a/selenium/webdriver/common/action_chains.py +++ b/selenium/webdriver/common/action_chains.py
@@ -290,7 +290,9 @@ - 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(