You are here

public function CoreDriver::find in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/behat/mink/src/Driver/CoreDriver.php \Behat\Mink\Driver\CoreDriver::find()

Finds elements with specified XPath query.

Parameters

string $xpath:

Return value

NodeElement[]

Throws

UnsupportedDriverActionException When operation not supported by the driver

DriverException When the operation cannot be done

Overrides DriverInterface::find

1 method overrides CoreDriver::find()
PhantomJSDriver::find in vendor/jcalderonzumba/mink-phantomjs-driver/src/PhantomJSDriver.php
Finds elements with specified XPath query.

File

vendor/behat/mink/src/Driver/CoreDriver.php, line 97

Class

CoreDriver
Core driver. All other drivers should extend this class for future compatibility.

Namespace

Behat\Mink\Driver

Code

public function find($xpath) {
  $elements = array();
  foreach ($this
    ->findElementXpaths($xpath) as $xpath) {
    $elements[] = new NodeElement($xpath, $this->session);
  }
  return $elements;
}