You are here

private function FeatureContext::findElementInRegion in Acquia Lift Connector 7

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

7 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

... See full list

File

behat-tests/features/bootstrap/FeatureContext.php, line 701

Class

FeatureContext
Defines application features from the specific context.

Code

private function findElementInRegion($selector, $region) {
  $regionObj = $this
    ->getRegion($region);
  return $regionObj
    ->find('css', $selector);
}