NEW add iClickOnTheElementConfirmingTheDialog

This commit is contained in:
Steve Boyd 2021-04-15 13:37:09 +12:00
parent d7321417b4
commit c754d70042
1 changed files with 12 additions and 0 deletions

View File

@ -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