You are here

public function PhantomJSDriver::isVisible 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::isVisible()

Check if element given by xpath is visible or not

Parameters

string $xpath:

Return value

bool

Throws

DriverException

Overrides CoreDriver::isVisible

File

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

Class

PhantomJSDriver
Class PhantomJSDriver @package Behat\Mink\Driver

Namespace

Zumba\Mink\Driver

Code

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