public function checkField($locator)
    {
        $field = $this->findField($locator);

        if (null === $field) {
            throw new ElementNotFoundException($this->getDriver(), 'form field', 'id|name|label|value', $locator);
        }

        $field->check();
    }
public function checkField($locator)
    {
        $field = $this->findField($locator);

        if (null === $field) {
            throw new ElementNotFoundException($this->getDriver(), 'form field', 'id|name|label|value', $locator);
        }

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

@param string $locator input id, name or label

@throws ElementNotFoundException
Checks checkbox with specified locator .