private function FeatureContext::findLinkInRegion in Acquia Lift Connector 7.2
Same name and namespace in other branches
- 7 behat-tests/features/bootstrap/FeatureContext.php \FeatureContext::findLinkInRegion()
Helper function to return a link in a particular region.
Note: the selector is translated to xpath in order to allow selection of the link even if it needs to be scrolled in order to visible.
Parameters
string $link: link id, title, text or image alt
$region: region identifier from configuration.
Return value
\Behat\Mink\Element\NodeElement|null The element node for the link or null if not found.
1 call to FeatureContext::findLinkInRegion()
- FeatureContext::assertRegionLinkHover in behat-tests/
features/ bootstrap/ FeatureContext.php - @When I hover over :link in the :region( region)
File
- behat-tests/
features/ bootstrap/ FeatureContext.php, line 896
Class
- FeatureContext
- Defines application features from the specific context.
Code
private function findLinkInRegion($link, $region) {
$regionObj = $this
->getRegion($region);
$element = $regionObj
->findLink($link);
return $element;
}