public function PhantomJSDriver::focus 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::focus()
Focus on an element
Parameters
string $xpath:
Throws
Overrides CoreDriver::focus
File
- vendor/
jcalderonzumba/ mink-phantomjs-driver/ src/ PhantomJSDriver.php, line 129
Class
- PhantomJSDriver
- Class PhantomJSDriver @package Behat\Mink\Driver
Namespace
Zumba\Mink\DriverCode
public function focus($xpath) {
$element = $this
->findElement($xpath, 1);
$this->browser
->trigger($element["page_id"], $element["ids"][0], "focus");
}