You are here

public function DomainTestBase::findField in Domain Access 8

Finds field (input, textarea, select) with specified locator.

Parameters

string $locator: Input id, name or label.

Return value

\Behat\Mink\Element\NodeElement|null The input field element.

6 calls to DomainTestBase::findField()
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.
DomainConfigUIOptionsTest::testFormOptions in domain_config_ui/tests/src/Functional/DomainConfigUIOptionsTest.php
Tests access the the settings form.
DomainConfigUIPermissionsTest::testSettingsAccess in domain_config_ui/tests/src/Functional/DomainConfigUIPermissionsTest.php
Tests access the the settings form.
DomainReferencesTest::testDomainReferences in domain/tests/src/Functional/DomainReferencesTest.php
Basic test setup.

... See full list

File

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

Class

DomainTestBase
Class DomainTestBase.

Namespace

Drupal\Tests\domain\Functional

Code

public function findField($locator) {
  return $this
    ->getSession()
    ->getPage()
    ->findField($locator);
}