function RulesBrowserTestBase::pressButton
Presses button with specified locator.
Parameters
string $locator: Button id, value or alt.
Throws
\Behat\Mink\Exception\ElementNotFoundException
26 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::createRule in tests/
src/ Functional/ ConfigureAndExecuteTest.php - Helper function to create a reaction rule.
- ConfigureAndExecuteTest::testAddEventAndExecute in tests/
src/ Functional/ ConfigureAndExecuteTest.php - Tests adding an event and then triggering its execution.
- ConfigureAndExecuteTest::testConfigureAndExecute in tests/
src/ Functional/ ConfigureAndExecuteTest.php - Tests creation of a rule and then triggering its execution.
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\FunctionalCode
public function pressButton($locator) {
$this->getSession()
->getPage()
->pressButton($locator);
}