You are here

public function RulesBrowserTestBase::pressButton in Rules 8.3

Presses button with specified locator.

Parameters

string $locator: Button id, value or alt.

Throws

\Behat\Mink\Exception\ElementNotFoundException

14 calls to RulesBrowserTestBase::pressButton()
ActionsFormTest::testActionsFormWidgets in tests/src/Functional/ActionsFormTest.php
Test each action provided by Rules.
ConditionsFormTest::testConditionsFormWidgets in tests/src/Functional/ConditionsFormTest.php
Test each condition provided by Rules.
ConfigureAndExecuteTest::testConfigureAndExecute in tests/src/Functional/ConfigureAndExecuteTest.php
Tests creation of a rule and then triggering its execution.
ConfigureAndExecuteTest::testMultipleInputContext in tests/src/Functional/ConfigureAndExecuteTest.php
Tests user input in context form for 'multiple' valued context variables.
ConfigureAndExecuteTest::testTwoRulesSameEvent in tests/src/Functional/ConfigureAndExecuteTest.php
Tests creating and altering two rules reacting on the same event.

... See full list

File

tests/src/Functional/RulesBrowserTestBase.php, line 80

Class

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

Namespace

Drupal\Tests\rules\Functional

Code

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