You are here

public function UiTestBase::pressButton in Editor Advanced Image 8

Same name and namespace in other branches
  1. 8.2 tests/src/FunctionalJavascript/UiTestBase.php \Drupal\Tests\editor_advanced_image\FunctionalJavascript\UiTestBase::pressButton()

Presses button with specified locator.

Parameters

string $locator: Button id, value or alt.

Throws

\Behat\Mink\Exception\ElementNotFoundException

1 call to UiTestBase::pressButton()
UiAdminTest::testDefaultClass in tests/src/FunctionalJavascript/UiAdminTest.php
Tests a CKEditor editor & storage of default class field.

File

tests/src/FunctionalJavascript/UiTestBase.php, line 47

Class

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

Namespace

Drupal\Tests\editor_advanced_image\FunctionalJavascript

Code

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