Returns parent element to the current one.
NodeElement
public function getParent() { $parent = $this->find('xpath', '..'); if ($parent === null) { throw new DriverException('Could not find the element parent. Maybe the element has been removed from the page.'); } return $parent; }