This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @Then /^I should see the "([^"]*)" form in the "([^"]*)" region$/ | |
*/ | |
public function iShouldSeeTheFormInTheRegion($form_id, $region) { | |
$regionObj = $this->getRegion($region); | |
$selectElement = $regionObj->find('xpath','//form[@id = "'. $form_id .'" or @name = "' . $form_id . '"]'); | |
if (empty($selectElement)) { | |
throw new \Exception(sprintf("No form '%s' is present in the '%s' region", $form_id, $region)); | |
} |
NewerOlder