public function BrowserTestHelpersTrait::fillField in Typed Data API enhancements 8
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
7 calls to BrowserTestHelpersTrait::fillField()
- DatetimeWidgetTest::testFormEditing in tests/
src/ Functional/ TypedDataFormWidget/ DatetimeWidgetTest.php - @covers ::form @covers ::extractFormValues
- DatetimeWidgetTest::testValidation in tests/
src/ Functional/ TypedDataFormWidget/ DatetimeWidgetTest.php - @covers ::form @covers ::flagViolations
- SelectWidgetTest::testValidation in tests/
src/ Functional/ TypedDataFormWidget/ SelectWidgetTest.php - @covers ::form @covers ::flagViolations
- TextareaWidgetTest::testFormEditing in tests/
src/ Functional/ TypedDataFormWidget/ TextareaWidgetTest.php - @covers ::form @covers ::extractFormValues
- TextareaWidgetTest::testValidation in tests/
src/ Functional/ TypedDataFormWidget/ TextareaWidgetTest.php - @covers ::form @covers ::flagViolations
File
- tests/
src/ Traits/ BrowserTestHelpersTrait.php, line 73
Class
- BrowserTestHelpersTrait
- Provides some helpers for BrowserTestBase.
Namespace
Drupal\Tests\typed_data\TraitsCode
public function fillField($locator, $value) {
$this
->getSession()
->getPage()
->fillField($locator, $value);
}