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