elementActive

Get the element on the page that currently has focus. The element will be returned as a WebElement JSON object.

Usage

1
browser.elementActive();

Returns

  • <String>: A WebElement JSON object for the active element.