API Docs for: 0.2.7
Show:

Touch Class

Defined in: lib/touch.js:9
Module: Interaction
Parent Module: WebDriver

Touch commands relative to a DOM-element

Constructor

Touch

(
  • driver
  • parent
)

Defined in lib/touch.js:9

Parameters:

Methods

_logMethodCall

(
  • event
)
private

Defined in lib/touch.js:29

Logs a method call by an event

Parameters:

_requestJSON

(
  • method
  • path
  • [body]
)
private

Defined in lib/touch.js:42

Performs a context dependent JSON request for the current session. The result is parsed for errors.

Parameters:

Returns:

:

doubleTap

()

Defined in lib/touch.js:82

Double tap with the finger on the element

down

(
  • xOffset
  • yOffset
)

Defined in lib/touch.js:101

Finger down on the screen at an offset relative to the element

Parameters:

downAtCenter

()

Defined in lib/touch.js:116

Finger down on the screen at the center of the element

longTap

()

Defined in lib/touch.js:91

Long tap with the finger on the element

moveTo

(
  • xOffset
  • yOffset
)

Defined in lib/touch.js:155

Move finger to an offset relative to the element

Parameters:

moveToCenter

()

Defined in lib/touch.js:170

Move finger to the center of the element

tap

()

Defined in lib/touch.js:73

Tap with the finger on the element

up

(
  • xOffset
  • yOffset
)

Defined in lib/touch.js:128

Finger up on the screen at an offset relative to the element

Parameters:

upAtCenter

()

Defined in lib/touch.js:143

Finger up on the screen at the center of the element