public function assertRegionButton($button, $region)
    {
        $regionObj = $this->getRegion($region);

        $buttonObj = $regionObj->findButton($button);
        if (empty($buttonObj)) {
            throw new \Exception(sprintf("The button '%s' was not found in the region '%s' on the page %s", $button, $region, $this->getSession()->getCurrentUrl()));
        }
    }
public function assertRegionButton($button, $region)
    {
        $regionObj = $this->getRegion($region);

        $buttonObj = $regionObj->findButton($button);
        if (empty($buttonObj)) {
            throw new \Exception(sprintf("The button '%s' was not found in the region '%s' on the page %s", $button, $region, $this->getSession()->getCurrentUrl()));
        }
    }
public function assertRegionButton ( $ button , $ region ) { $ regionObj = $ this -> getRegion ( $ region ) ; $ buttonObj = $ regionObj -> findButton ( $ button ) ; if ( empty ( $ buttonObj ) ) { throw new \ Exception ( sprintf ( "The button '%s' was not found in the region '%s' on the page %s" , $ button , $ region , $ this -> getSession ( ) -> getCurrentUrl ( ) ) ) ; } }
Checks if a button with id|name|title|alt|value exists in a region

@Then I should see the button :button in the :region( region)
@Then I should see the :button button in the :region( region)

@param $button
string The id|name|title|alt|value of the button
@param $region
string The region in which the button should be found

@throws \Exception
If region or button within it cannot be found.
Checks if a button with id|name|title|alt|value exists in a region