Skip to content

Commit e98b4a2

Browse files
fix: duration
1 parent 8130d8f commit e98b4a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ui-element.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -506,13 +506,13 @@ export class UIElement {
506506
let action = new this._wd.TouchAction(this._driver);
507507
action
508508
.longPress({ x: x, y: y })
509-
.wait(endPoint.duration)
509+
.wait(duration)
510510
.moveTo({ x: yOffset, y: yOffset })
511511
.release();
512512
await action.perform();
513513
} else {
514514
await this._driver.execute(`mobile: dragFromToForDuration`, {
515-
duration: endPoint.duration,
515+
duration: duration,
516516
fromX: x,
517517
fromY: y,
518518
toX: xOffset,

0 commit comments

Comments
 (0)