You are here

public function NodeElement::getParent in Zircon Profile 8

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

Returns parent element to the current one.

Return value

NodeElement

File

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

Class

NodeElement
Page element node.

Namespace

Behat\Mink\Element

Code

public function getParent() {
  return $this
    ->find('xpath', '..');
}