You are here

public function PermissionsByTermDrupalSubContext::uncheckCheckbox in Permissions by Term 8.2

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

Parameters

string $id:

File

tests/src/Behat/Context/permissions_by_term.behat.inc, line 217

Class

PermissionsByTermDrupalSubContext
Class PermissionsByTermContext

Namespace

Drupal\Tests\permissions_by_term\Behat\PermissionsByTermDrupalSubContext

Code

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