You are here

public function DomainTestBase::fillField in Domain Access 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

5 calls to DomainTestBase::fillField()
DomainAccessElementTest::runInstalledTest in domain_access/tests/src/Functional/DomainAccessElementTest.php
Basic test setup.
DomainAdminElementTest::testDomainAccessElement in domain/tests/src/Functional/DomainAdminElementTest.php
Basic test setup.
DomainListWeightTest::testDomainWeight in domain/tests/src/Functional/DomainListWeightTest.php
Basic test setup.
DomainReferencesTest::testDomainReferences in domain/tests/src/Functional/DomainReferencesTest.php
Basic test setup.
DomainSourceElementTest::runInstalledTest in domain_source/tests/src/Functional/DomainSourceElementTest.php
Basic test setup.

File

domain/tests/src/Functional/DomainTestBase.php, line 171

Class

DomainTestBase
Class DomainTestBase.

Namespace

Drupal\Tests\domain\Functional

Code

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