Merge pull request #202 from creative-commoners/pulls/4.3/click-element-confirm-dialog

NEW add iClickOnTheElementConfirmingTheDialog
This commit is contained in:
Maxime Rainville 2021-04-16 10:12:15 +12:00 committed by GitHub
commit 91be987eac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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