You are here

protected function TestBase::click in Twig Field 8

Clicks button or link located by it's XPath query.

Overrides UiHelperTrait::click

1 call to TestBase::click()
TwigFieldTest::testTwigField in tests/src/FunctionalJavascript/TwigFieldTest.php
Test callback.

File

tests/src/FunctionalJavascript/TestBase.php, line 68

Class

TestBase
Base class for Twig field tests.

Namespace

Drupal\Tests\twig_field\FunctionalJavascript

Code

protected function click($xpath) {
  $this
    ->getSession()
    ->getDriver()
    ->click($xpath);
}