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();