private function FeatureContext::findElementInRegion in Acquia Lift Connector 7.2
Same name and namespace in other branches
- 7 behat-tests/features/bootstrap/FeatureContext.php \FeatureContext::findElementInRegion()
Helper function to return an element in a particular region.
Parameters
string $selector: the css selector for an element
$region: region identifier from configuration.
Return value
\Behat\Mink\Element\NodeElement|null The element node for the link or null if not found.
10 calls to FeatureContext::findElementInRegion()
- FeatureContext::assertElementWithIDHasClass in behat-tests/
features/ bootstrap/ FeatureContext.php - @Then I should see element with :id id in :region region with the :class class
- FeatureContext::assertNotRegionVariationHasLink in behat-tests/
features/ bootstrap/ FeatureContext.php - @Then :variation_set set :variation variation should not have the :link link
- FeatureContext::assertRegionElementClick in behat-tests/
features/ bootstrap/ FeatureContext.php - @When I click :selector element in the :region region
- FeatureContext::assertRegionElementHover in behat-tests/
features/ bootstrap/ FeatureContext.php - @When I hover over :id id in the :region( region)
- FeatureContext::assertRegionElementIsInState in behat-tests/
features/ bootstrap/ FeatureContext.php - @Then I should see :selector element in the :region region is :state for editing
File
- behat-tests/
features/ bootstrap/ FeatureContext.php, line 933
Class
- FeatureContext
- Defines application features from the specific context.
Code
private function findElementInRegion($selector, $region) {
$regionObj = $this
->getRegion($region);
return $regionObj
->find('css', $selector);
}