You are here

public function DurationFieldBrowserTestBase::assertElementExistsXpath in Duration Field 8

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/DurationFieldBrowserTestBase.php \Drupal\Tests\duration_field\Functional\DurationFieldBrowserTestBase::assertElementExistsXpath()
  2. 3.0.x tests/src/Functional/DurationFieldBrowserTestBase.php \Drupal\Tests\duration_field\Functional\DurationFieldBrowserTestBase::assertElementExistsXpath()

Asserts that an element exists by it's xpath.

1 call to DurationFieldBrowserTestBase::assertElementExistsXpath()
DurationFieldAccessTest::createDefaultSetup in tests/src/Functional/DurationFieldFunctionalTest.php
Sets up a date.

File

tests/src/Functional/DurationFieldBrowserTestBase.php, line 130

Class

DurationFieldBrowserTestBase
Base class that provides some helper functions for functional tests.

Namespace

Drupal\Tests\duration_field\Functional

Code

public function assertElementExistsXpath($selector) {
  $this
    ->assertSession()
    ->elementExists('xpath', $selector);
}