API Docs for: 0.2.7
Show:

GlobalTouch Class

Defined in: lib/globalTouch.js:8
Module: Interaction
Parent Module: WebDriver

Global touch object handling global touch commands

Constructor

GlobalTouch

(
  • driver
)

Parameters:

Methods

_doubleTap

(
  • elementId
)
protected

Double tap on an element

Parameters:

_logMethodCall

(
  • event
)
private

Logs a method call by an event

Parameters:

_longTap

(
  • elementId
)
protected

Long tap on an element

Parameters:

_requestJSON

(
  • method
  • path
  • [body]
)
private

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

Parameters:

Returns:

:

_tap

(
  • elementId
)
protected

Tap on an element

Parameters:

down

(
  • x
  • y
)

Finger down on the screen at the given position

Parameters:

flick

(
  • xSpeed
  • ySpeed
)

Flick on the touch screen using finger motion events. This flick command starts at a particular screen location.

Parameters:

move

(
  • x
  • y
)

Move finger on the screen to the given position

Parameters:

scroll

(
  • xOffset
  • yOffset
)

Scroll on the touch screen using finger based motion events according to an offset

Parameters:

up

(
  • x
  • y
)

Finger up on the screen at the given position

Parameters: