public function RulesBrowserTestBase::fillField in Rules 8.3
Fills in field (input, textarea, select) with specified locator.
Parameters
string $locator: Input id, name or label.
string $value: Value.
Throws
\Behat\Mink\Exception\ElementNotFoundException
See also
\Behat\Mink\Element\NodeElement::setValue
13 calls to RulesBrowserTestBase::fillField()
- ActionsFormTest::testActionsFormWidgets in tests/
src/ Functional/ ActionsFormTest.php - Test each action provided by Rules.
- ConditionsFormTest::testConditionsFormWidgets in tests/
src/ Functional/ ConditionsFormTest.php - Test each condition provided by Rules.
- ConfigureAndExecuteTest::testConfigureAndExecute in tests/
src/ Functional/ ConfigureAndExecuteTest.php - Tests creation of a rule and then triggering its execution.
- ConfigureAndExecuteTest::testMultipleInputContext in tests/
src/ Functional/ ConfigureAndExecuteTest.php - Tests user input in context form for 'multiple' valued context variables.
- ConfigureAndExecuteTest::testTwoRulesSameEvent in tests/
src/ Functional/ ConfigureAndExecuteTest.php - Tests creating and altering two rules reacting on the same event.
File
- tests/
src/ Functional/ RulesBrowserTestBase.php, line 96
Class
- RulesBrowserTestBase
- Has some additional helper methods to make test code more readable.
Namespace
Drupal\Tests\rules\FunctionalCode
public function fillField($locator, $value) {
$this
->getSession()
->getPage()
->fillField($locator, $value);
}