public function PhantomJSDriver::isVisible in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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
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\DriverCode
public function isVisible($xpath) {
$elements = $this
->findElement($xpath, 1);
return $this->browser
->isVisible($elements["page_id"], $elements["ids"][0]);
}