public function VarbaseContext::iFillInAlert in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 9.0.x
Same name and namespace in other branches
- 8.8 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iFillInAlert()
- 8.4 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iFillInAlert()
- 8.5 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iFillInAlert()
- 8.6 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iFillInAlert()
- 8.7 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iFillInAlert()
Fill a text in the alert message.
Varbase Context #varbase.
Example #1: When I fill "See this alert" in alert Example #2: And fill "See this text" in alert.
@When /^(?:|I )fill "(?P<text>[^"]*)" in alert$/
File
- tests/
features/ bootstrap/ VarbaseContext.php, line 1249
Class
- VarbaseContext
- Defines application features from the specific context.
Code
public function iFillInAlert($message) {
try {
$this
->getSession()
->getDriver()
->getWebDriverSession()
->postAlert_text($message);
} catch (Exception $e) {
// no-op, alert might not be present.
}
}