|
17 | 17 |
|
18 | 18 | package org.openqa.selenium.interactions; |
19 | 19 |
|
| 20 | +import org.openqa.selenium.Point; |
20 | 21 | import org.openqa.selenium.WebElement; |
21 | 22 | import org.openqa.selenium.WrapsElement; |
22 | 23 | import org.openqa.selenium.internal.Require; |
@@ -71,10 +72,18 @@ public Interaction createPointerMove(Duration duration, Origin origin, int x, in |
71 | 72 | return new Move(this, duration, origin, x, y); |
72 | 73 | } |
73 | 74 |
|
| 75 | + public Interaction createPointerMove(Duration duration, Origin origin, Point offset) { |
| 76 | + return createPointerMove(duration, origin, offset.x, offset.y); |
| 77 | + } |
| 78 | + |
74 | 79 | public Interaction createPointerMove(Duration duration, Origin origin, int x, int y, PointerEventProperties eventProperties) { |
75 | 80 | return new Move(this, duration, origin, x, y, eventProperties); |
76 | 81 | } |
77 | 82 |
|
| 83 | + public Interaction createPointerMove(Duration duration, Origin origin, Point offset, PointerEventProperties eventProperties) { |
| 84 | + return createPointerMove(duration, origin, offset.x, offset.y, eventProperties); |
| 85 | + } |
| 86 | + |
78 | 87 | public Interaction createPointerDown(int button) { |
79 | 88 | return new PointerPress(this, PointerPress.Direction.DOWN, button); |
80 | 89 | } |
|
0 commit comments