You are here

public function BrowserKitDriver::getTagName in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/behat/mink-browserkit-driver/src/BrowserKitDriver.php \Behat\Mink\Driver\BrowserKitDriver::getTagName()

Returns element's tag name by it's XPath query.

Parameters

string $xpath:

Return value

string

Throws

UnsupportedDriverActionException When operation not supported by the driver

DriverException When the operation cannot be done

Overrides CoreDriver::getTagName

File

vendor/behat/mink-browserkit-driver/src/BrowserKitDriver.php, line 337

Class

BrowserKitDriver
Symfony2 BrowserKit driver.

Namespace

Behat\Mink\Driver

Code

public function getTagName($xpath) {
  return $this
    ->getCrawlerNode($this
    ->getFilteredCrawler($xpath))->nodeName;
}