You are here

public function NodeElement::getAttribute in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/behat/mink/src/Element/NodeElement.php \Behat\Mink\Element\NodeElement::getAttribute()

Returns specified attribute value.

Parameters

string $name:

Return value

string|null

1 call to NodeElement::getAttribute()
NodeElement::hasClass in vendor/behat/mink/src/Element/NodeElement.php
Checks whether an element has a named CSS class.

File

vendor/behat/mink/src/Element/NodeElement.php, line 127

Class

NodeElement
Page element node.

Namespace

Behat\Mink\Element

Code

public function getAttribute($name) {
  return $this
    ->getDriver()
    ->getAttribute($this
    ->getXpath(), $name);
}