@christian-bromann/webdriverio
Version:
A nodejs bindings implementation for selenium 2.0/webdriver
20 lines (17 loc) • 496 B
JavaScript
/**
*
* 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://w3c.github.io/webdriver/webdriver-spec.html#dfn-get-active-element
* @type protocol
*
*/
let elementActive = function () {
return this.requestHandler.create({
path: '/session/:sessionId/element/active',
method: 'POST'
})
}
export default elementActive