You are here

public function CoreDriver::getAttribute in Zircon Profile 8

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

Returns element's attribute by it's XPath query.

Parameters

string $xpath:

string $name:

Return value

string|null

Throws

UnsupportedDriverActionException When operation not supported by the driver

DriverException When the operation cannot be done

Overrides DriverInterface::getAttribute

2 methods override CoreDriver::getAttribute()
BrowserKitDriver::getAttribute in vendor/behat/mink-browserkit-driver/src/BrowserKitDriver.php
Returns element's attribute by it's XPath query.
PhantomJSDriver::getAttribute in vendor/jcalderonzumba/mink-phantomjs-driver/src/PhantomJSDriver.php
Gets the attribute value of a given element and name

File

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

Class

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

Namespace

Behat\Mink\Driver

Code

public function getAttribute($xpath, $name) {
  throw new UnsupportedDriverActionException('Getting the element attribute is not supported by %s', $this);
}