You are here

public function PermissionsByTermContext::checkCheckbox in Permissions by Term 8

@Then /^I check checkbox with id "([^"]*)"$/

Parameters

string $id:

File

tests/src/Behat/Context/PermissionsByTermContext.php, line 185

Class

PermissionsByTermContext
Class PermissionsByTermContext

Namespace

Drupal\Tests\permissions_by_term\Behat\Context

Code

public function checkCheckbox($id) {
  $page = $this
    ->getSession()
    ->getPage();
  $selectElement = $page
    ->find('xpath', '//input[@id = "' . $id . '"]');
  $selectElement
    ->check();
}