stepIPressTheButtonConfirmingTheDialog

This commit is contained in:
Ingo Schommer 2013-08-16 13:32:13 +02:00
parent 2e3d97cbc4
commit f18a54afbe
1 changed files with 11 additions and 0 deletions

View File

@ -276,6 +276,17 @@ JS;
$matchedEl->click();
}
/**
* Needs to be in single command to avoid "unexpected alert open" errors in Selenium.
*
* @Given /^I press the "([^"]*)" button, confirming the dialog$/
*/
public function stepIPressTheButtonConfirmingTheDialog($button)
{
$this->stepIPressTheButton($button);
$this->iConfirmTheDialog();
}
/**
* @Given /^I click "([^"]*)" in the "([^"]*)" element$/
*/