You are here

public function PermissionsByTermDrupalSubContext::checkCheckboxWithJS in Permissions by Term 8.2

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

Parameters

string $id:

File

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

Class

PermissionsByTermDrupalSubContext
Class PermissionsByTermContext

Namespace

Drupal\Tests\permissions_by_term\Behat\PermissionsByTermDrupalSubContext

Code

public function checkCheckboxWithJS($id) {
  $this
    ->getSession()
    ->executeScript("\n                document.getElementById('" . $id . "').checked = true;\n            ");
}