public function iHoverIShouldSeeIn($element) { $node = $this->getSession()->getPage()->find('css', $element); if ($node === null) { throw new \Exception("The hovered element '{$element}' was not found anywhere in the page"); } $node->mouseOver(); }