I'm trying this code to check a html input checkbox, but it's not working:
$this->client->findElement(WebDriverBy::cssSelector('.checkbox_additional_field_assign'))->sendKeys(true);
The checkbox:
<input name="additionalField" value="14" class="checkbox_additional_field_assign" type="checkbox">
Any idea how to do it?
I find out the way: