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
File
- tests/
src/ Traits/ BrowserTestHelpersTrait.php, line 57
Class
- BrowserTestHelpersTrait
- Provides some helpers for BrowserTestBase.
Namespace
Drupal\Tests\typed_data\TraitsCode
public function pressButton($locator) {
$this
->getSession()
->getPage()
->pressButton($locator);
}