You are here

public function SiteAlertTestBase::pressButton in Site Alert 8

Presses button with specified locator.

Parameters

string $locator: Button id, value or alt.

Throws

\Behat\Mink\Exception\ElementNotFoundException

1 call to SiteAlertTestBase::pressButton()
SiteAlertUiTest::testUi in tests/src/Functional/SiteAlertUiTest.php
Tests the creation and deletion of site alerts through the user interface.

File

tests/src/Functional/SiteAlertTestBase.php, line 59

Class

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

Namespace

Drupal\Tests\site_alert\Functional

Code

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