You are here

public function PermissionsByTermContext::selectOption in Permissions by Term 8

@Then /^I select "([^"]*)" in "([^"]*)"$/

Parameters

string $label:

string $id:

File

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

Class

PermissionsByTermContext
Class PermissionsByTermContext

Namespace

Drupal\Tests\permissions_by_term\Behat\Context

Code

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