Nearsoft\SeleniumClient\TargetLocator::activeElement PHP Method

activeElement() public method

Finds the active element on the page and returns it
public activeElement ( ) : WebElement
return WebElement
    public function activeElement()
    {
        $command = new Commands\Command($this->_driver, 'active_element');
        $results = $command->execute();
        return new WebElement($this->_driver, $results['value']['ELEMENT']);
    }