public function mapElements($cssSelector, callable $function)
    {
        $elements = $this->getElementByCssSelector($cssSelector);
        $result = array();
        if (!empty($elements)) {
            $result = $this->map($elements, $function);
        }

        return $result;
    }