You are here

public function UiTestBase::findField in Editor Advanced Image 8

Same name and namespace in other branches
  1. 8.2 tests/src/FunctionalJavascript/UiTestBase.php \Drupal\Tests\editor_advanced_image\FunctionalJavascript\UiTestBase::findField()

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.

File

tests/src/FunctionalJavascript/UiTestBase.php, line 22

Class

UiTestBase
Has some additional helper methods to make test code more readable.

Namespace

Drupal\Tests\editor_advanced_image\FunctionalJavascript

Code

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