public function VarbaseContext::beforeStepAcceptAlert in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 8.7
Same name and namespace in other branches
- 8.8 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::beforeStepAcceptAlert()
- 8.4 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::beforeStepAcceptAlert()
- 8.5 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::beforeStepAcceptAlert()
- 8.6 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::beforeStepAcceptAlert()
- 9.0.x tests/features/bootstrap/VarbaseContext.php \VarbaseContext::beforeStepAcceptAlert()
* Accept Alerts Before going to the next step. * @BeforeStep @AcceptAlertsBeforStep
File
- tests/
features/ bootstrap/ VarbaseContext.php, line 1216
Class
- VarbaseContext
- Defines application features from the specific context.
Code
public function beforeStepAcceptAlert(BeforeStepScope $scope) {
try {
$this
->getSession()
->getDriver()
->getWebDriverSession()
->accept_alert();
} catch (\WebDriver\Exception $e) {
// no-op, alert might not be present
}
}