You are here

public function PhantomJSDriver::getTagName in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/jcalderonzumba/mink-phantomjs-driver/src/PhantomJSDriver.php \Zumba\Mink\Driver\PhantomJSDriver::getTagName()

Gets the tag name of a given xpath

Parameters

string $xpath:

Return value

string

Throws

DriverException

Overrides CoreDriver::getTagName

1 call to PhantomJSDriver::getTagName()
PhantomJSDriver::attachFile in vendor/jcalderonzumba/mink-phantomjs-driver/src/PhantomJSDriver.php
Upload a file to the browser

File

vendor/jcalderonzumba/mink-phantomjs-driver/src/PhantomJSDriver.php, line 40

Class

PhantomJSDriver
Class PhantomJSDriver @package Behat\Mink\Driver

Namespace

Zumba\Mink\Driver

Code

public function getTagName($xpath) {
  $elements = $this
    ->findElement($xpath, 1);
  return $this->browser
    ->tagName($elements["page_id"], $elements["ids"][0]);
}