public function PermissionsByTermDrupalSubContext::checkCheckbox in Permissions by Term 8.2
@Then /^I check checkbox with id "([^"]*)"$/
Parameters
string $id:
File
- tests/
src/ Behat/ Context/ permissions_by_term.behat.inc, line 205
Class
- PermissionsByTermDrupalSubContext
- Class PermissionsByTermContext
Namespace
Drupal\Tests\permissions_by_term\Behat\PermissionsByTermDrupalSubContextCode
public function checkCheckbox($id) {
$page = $this
->getSession()
->getPage();
$selectElement = $page
->find('xpath', '//input[@id = "' . $id . '"]');
$selectElement
->check();
}