Skip to main content

Page regions

DrevOps\BehatSteps\Steps\Web\RegionTrait - Source, Steps

Interact with and assert against named page regions.

public function regionFindElementByText(string $region, string $selector, string $text): ?NodeElement

Find an element in a region whose text matches exactly

public function regionFindElementWithAttribute(string $region, string $selector, string $attribute, string $value): ?NodeElement

Find an element in a region whose attribute holds a value

public function regionGet(string $region): NodeElement

Return a named region on the current page

public function regionGetElementByText(string $region, string $selector, string $text): NodeElement

Return an element in a region whose text matches exactly