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