UNPKG

@testim/testim-cli

Version:

Command line interface for running Testing on you CI

20 lines (16 loc) 498 B
/** * * Get the element on the page that currently has focus. The element will be returned as a WebElement JSON object. * * @returns {String} A WebElement JSON object for the active element. * * @see https://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/element/active * @type protocol * */ module.exports = function elementActive () { return this.requestHandler.create({ path: '/session/:sessionId/element/active', method: 'POST' }); };