You are here

public function UiTestBase::findButton 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::findButton()

Finds button with specified locator.

Parameters

string $locator: Button id, value or alt.

Return value

\Behat\Mink\Element\NodeElement|null The button node element.

File

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

Class

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

Namespace

Drupal\Tests\editor_advanced_image\FunctionalJavascript

Code

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