You are here

public function BrowserTestHelpersTrait::pressButton in Typed Data API enhancements 8

Presses button with specified locator.

Parameters

string $locator: Button id, value or alt.

Throws

\Behat\Mink\Exception\ElementNotFoundException

9 calls to BrowserTestHelpersTrait::pressButton()
BrokenWidgetTest::testFormEditing in tests/src/Functional/TypedDataFormWidget/BrokenWidgetTest.php
@covers ::form @covers ::extractFormValues
DatetimeWidgetTest::testFormEditing in tests/src/Functional/TypedDataFormWidget/DatetimeWidgetTest.php
@covers ::form @covers ::extractFormValues
DatetimeWidgetTest::testValidation in tests/src/Functional/TypedDataFormWidget/DatetimeWidgetTest.php
@covers ::form @covers ::flagViolations
SelectWidgetTest::testFormEditing in tests/src/Functional/TypedDataFormWidget/SelectWidgetTest.php
@covers ::form @covers ::extractFormValues
SelectWidgetTest::testValidation in tests/src/Functional/TypedDataFormWidget/SelectWidgetTest.php
@covers ::form @covers ::flagViolations

... See full list

File

tests/src/Traits/BrowserTestHelpersTrait.php, line 57

Class

BrowserTestHelpersTrait
Provides some helpers for BrowserTestBase.

Namespace

Drupal\Tests\typed_data\Traits

Code

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