mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 17:05:32 +02:00
NEW add iClickOnTheElementConfirmingTheDialog
This commit is contained in:
parent
d7321417b4
commit
c754d70042
@ -499,6 +499,18 @@ JS;
|
||||
$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$/
|
||||
* @param string $clickType
|
||||
|
Loading…
Reference in New Issue
Block a user