You are here

public function FormManipulationTrait::uncheck in Zircon Profile 8

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

We click on the checkbox or radio when possible and needed

Parameters

string $xpath:

Throws

DriverException

File

vendor/jcalderonzumba/mink-phantomjs-driver/src/FormManipulationTrait.php, line 128

Class

FormManipulationTrait
Trait FormManipulationTrait @package Zumba\Mink\Driver

Namespace

Zumba\Mink\Driver

Code

public function uncheck($xpath) {
  $this
    ->inputCheckableControl($xpath);
  $javascript = $this
    ->javascriptTemplateRender("check_element.js.twig", array(
    "xpath" => $xpath,
    "check" => "false",
  ));
  $this->browser
    ->evaluate($javascript);
}