UNPKG

@testim/testim-cli

Version:

Command line interface for running Testing on you CI

27 lines (22 loc) 579 B
/** * * Release touch sequenz on specific element. * * @param {String} selector element to release on * * @uses property/getLocation, protocol/touchUp * @type mobile * */ var ErrorHandler = require('../utils/ErrorHandler.js'); module.exports = function release (selector) { /*! * compatibility check */ if(!this.isMobile) { throw new ErrorHandler.CommandError('release command is not supported on non mobile platforms'); } return this.getLocation(selector).then(function(res) { return this.touchUp(res.x, res.y); }); };