You are here

public function FeatureContext::assertRegionElementHover in Acquia Lift Connector 7.2

Same name and namespace in other branches
  1. 7 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 387

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();
}