You are here

public function PermissionsByTermDrupalSubContext::clickBySelector in Permissions by Term 8.2

@Then /^I click by selector "([^"]*)" via JavaScript$/

Parameters

string $selector:

File

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

Class

PermissionsByTermDrupalSubContext
Class PermissionsByTermContext

Namespace

Drupal\Tests\permissions_by_term\Behat\PermissionsByTermDrupalSubContext

Code

public function clickBySelector(string $selector) {
  $this
    ->getSession()
    ->executeScript("document.querySelector('" . $selector . "').click()");
}