ITargetLocator ActiveElement Method WebDriver
Switches to the element that currently has the focus, or the body element if no element with focus can be detected.

Namespace: OpenQA.Selenium
Assembly: WebDriver (in WebDriver.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax

IWebElement ActiveElement()

Return Value

An IWebElement instance representing the element with the focus, or the body element if no element with focus can be detected.
See Also