You are here

public function TraversableElement::hasTable in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/behat/mink/src/Element/TraversableElement.php \Behat\Mink\Element\TraversableElement::hasTable()

Checks whether element has a table with specified locator.

Parameters

string $locator table id or caption:

Return value

Boolean

File

vendor/behat/mink/src/Element/TraversableElement.php, line 272

Class

TraversableElement
Traversable element.

Namespace

Behat\Mink\Element

Code

public function hasTable($locator) {
  return $this
    ->has('named', array(
    'table',
    $locator,
  ));
}