public function theElementShouldBeEnabled($element)
{
$node = $this->getSession()->getPage()->find('css', $element);
if ($node === null) {
throw new \Exception("There is no '{$element}' element");
}
if ($node->hasAttribute('disabled')) {
throw new \Exception("The element '{$element}' is not enabled");
}
}