function RulesBrowserTestBase::fillField

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

19 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::createRule in tests/src/Functional/ConfigureAndExecuteTest.php
Helper function to create a reaction rule.
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.

... See full list

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\Functional

Code

public function fillField($locator, $value) {
    $this->getSession()
        ->getPage()
        ->fillField($locator, $value);
}