You are here

public function ElementInterface::has in Zircon Profile 8

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

Checks whether element with specified selector exists inside the current element.

Parameters

string $selector selector engine name:

string|array $locator selector locator:

Return value

Boolean

See also

ElementInterface::findAll for the supported selectors

1 method overrides ElementInterface::has()
Element::has in vendor/behat/mink/src/Element/Element.php
Checks whether element with specified selector exists inside the current element.

File

vendor/behat/mink/src/Element/ElementInterface.php, line 48

Class

ElementInterface
Element interface.

Namespace

Behat\Mink\Element

Code

public function has($selector, $locator);