mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 17:05:32 +02:00
Merge pull request #202 from creative-commoners/pulls/4.3/click-element-confirm-dialog
NEW add iClickOnTheElementConfirmingTheDialog
This commit is contained in:
commit
91be987eac
@ -499,6 +499,18 @@ JS;
|
|||||||
$element->click();
|
$element->click();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Needs to be in single command to avoid "unexpected alert open" errors in Selenium.
|
||||||
|
*
|
||||||
|
* @When /^I click on the "([^"]+)" element, confirming the dialog$/
|
||||||
|
* @param $selector
|
||||||
|
*/
|
||||||
|
public function iClickOnTheElementConfirmingTheDialog($selector)
|
||||||
|
{
|
||||||
|
$this->iClickOnTheElement($selector);
|
||||||
|
$this->iConfirmTheDialog();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Given /^I (click|double click) "([^"]*)" in the "([^"]*)" element$/
|
* @Given /^I (click|double click) "([^"]*)" in the "([^"]*)" element$/
|
||||||
* @param string $clickType
|
* @param string $clickType
|
||||||
|
Loading…
Reference in New Issue
Block a user