mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 15:05:32 +00:00
stepIPressTheButtonConfirmingTheDialog
This commit is contained in:
parent
2e3d97cbc4
commit
f18a54afbe
@ -276,6 +276,17 @@ JS;
|
|||||||
$matchedEl->click();
|
$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$/
|
* @Given /^I click "([^"]*)" in the "([^"]*)" element$/
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user