* Creates an action for moving the pointer `x` and `y` pixels from the * specified `origin`. The `origin` may be defined as the pointer's * plain Origin.POINTER current position, the * plain Origin.VIEWPORT viewport, or the center of a specific * {@linkplain ./webdriver.Web
({
x = 0,
y = 0,
duration = 100,
origin = Origin.VIEWPORT,
width = 0,
height = 0,
pressure = 0,
tangentialPressure = 0,
tiltX = 0,
tiltY = 0,
twist = 0,
altitudeAngle = 0,
azimuthAngle = 0,
})
| 409 | * @package |
| 410 | */ |
| 411 | move({ |
| 412 | x = 0, |
| 413 | y = 0, |
| 414 | duration = 100, |
| 415 | origin = Origin.VIEWPORT, |
| 416 | width = 0, |
| 417 | height = 0, |
| 418 | pressure = 0, |
| 419 | tangentialPressure = 0, |
| 420 | tiltX = 0, |
| 421 | tiltY = 0, |
| 422 | twist = 0, |
| 423 | altitudeAngle = 0, |
| 424 | azimuthAngle = 0, |
| 425 | }) { |
| 426 | return { |
| 427 | type: Action.Type.POINTER_MOVE, |
| 428 | origin, |
| 429 | duration, |
| 430 | x, |
| 431 | y, |
| 432 | width, |
| 433 | height, |
| 434 | pressure, |
| 435 | tangentialPressure, |
| 436 | tiltX, |
| 437 | tiltY, |
| 438 | twist, |
| 439 | altitudeAngle, |
| 440 | azimuthAngle, |
| 441 | } |
| 442 | } |
| 443 | } |
| 444 | |
| 445 | /** |
no outgoing calls
no test coverage detected