protected function click($textOrId)
    {
        $element = $this->wd->findElement(WebDriverBy::xpath("//a[contains(., '{$textOrId}')]"));

        try {
            $element->click();
        } catch (\Exception $e) {
            throw new CannotClickElement('Cannot click the element with the text: '.$textOrId);
        }

        return $this;
    }