Checks checkbox with specified locator.
string $locator input id, name or label:
void
ElementNotFoundException
public function checkField(string $locator) { $field = $this->findField($locator); if (null === $field) { throw new ElementNotFoundException($this->getDriver(), 'form field', 'id|name|label|value', $locator); } $field->check(); }