public function FeatureContext::assertRegionLinkHover in Acquia Lift Connector 7
Same name and namespace in other branches
- 7.2 behat-tests/features/bootstrap/FeatureContext.php \FeatureContext::assertRegionLinkHover()
@When I hover over :link in the :region( region)
Throws
\Exception If region or link within it cannot be found.
File
- behat-tests/
features/ bootstrap/ FeatureContext.php, line 284
Class
- FeatureContext
- Defines application features from the specific context.
Code
public function assertRegionLinkHover($link, $region) {
$linkObj = $this
->findLinkInRegion($link, $region);
if (empty($linkObj)) {
throw new \Exception(sprintf('The link "%s" was not found in the region "%s" on the page %s', $link, $region, $this
->getSession()
->getCurrentUrl()));
}
$linkObj
->mouseOver();
}