public function BrowserTestHelpersTrait::findField in Typed Data API enhancements 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.
File
- tests/
src/ Traits/ BrowserTestHelpersTrait.php, line 32
Class
- BrowserTestHelpersTrait
- Provides some helpers for BrowserTestBase.
Namespace
Drupal\Tests\typed_data\TraitsCode
public function findField($locator) {
return $this
->getSession()
->getPage()
->findField($locator);
}