/**
* Tests states of elements triggered by a checkbox element.
*/ protectedfunctiondoCheckboxTriggerTests(){ $this->drupalGet('form-test/javascript-states-form'); $page = $this->getSession()->getPage();
// Find trigger and target elements.
$trigger = $page->findField('checkbox_trigger');