lib/Remote/RemoteTargetLocator.php
public function activeElement()
    {
        $response = $this->driver->execute(DriverCommand::GET_ACTIVE_ELEMENT, []);
        $method = new RemoteExecuteMethod($this->driver);

        return new RemoteWebElement($method, $response['ELEMENT']);
    }
public function activeElement()
    {
        $response = $this->driver->execute(DriverCommand::GET_ACTIVE_ELEMENT, []);
        $method = new RemoteExecuteMethod($this->driver);

        return new RemoteWebElement($method, $response['ELEMENT']);
    }
public function activeElement ( ) { $ response = $ this -> driver -> execute ( DriverCommand :: GET_ACTIVE_ELEMENT , [ ] ) ; $ method = new RemoteExecuteMethod ( $ this -> driver ) ; return new RemoteWebElement ( $ method , $ response [ 'ELEMENT' ] ) ; }
Switches to the element that currently has focus within the document
currently "switched to", or the body element if this cannot be detected.

@return RemoteWebElement
Switches to the element that currently has focus within the document currently switched to or the body element if this cannot be detected .