You are here

public function DomainTestBase::selectFieldOption in Domain Access 8

Selects option from select field with specified locator.

Parameters

string $locator: An input id, name or label.

string $value: The option value.

bool $multiple: Whether to select multiple options.

Throws

\Behat\Mink\Exception\ElementNotFoundException

See also

NodeElement::selectOption

1 call to DomainTestBase::selectFieldOption()
DomainSourceElementTest::runInstalledTest in domain_source/tests/src/Functional/DomainSourceElementTest.php
Basic test setup.

File

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

Class

DomainTestBase
Class DomainTestBase.

Namespace

Drupal\Tests\domain\Functional

Code

public function selectFieldOption($locator, $value, $multiple = FALSE) {
  $this
    ->getSession()
    ->getPage()
    ->selectFieldOption($locator, $value, $multiple);
}