public function PermissionsByTermDrupalSubContext::selectOption in Permissions by Term 8.2
@Then /^I select "([^"]*)" in "([^"]*)"$/
Parameters
string $label:
string $id:
File
- tests/
src/ Behat/ Context/ permissions_by_term.behat.inc, line 230
Class
- PermissionsByTermDrupalSubContext
- Class PermissionsByTermContext
Namespace
Drupal\Tests\permissions_by_term\Behat\PermissionsByTermDrupalSubContextCode
public function selectOption($label, $id) {
$page = $this
->getSession()
->getPage();
$selectElement = $page
->find('xpath', '//select[@id = "' . $id . '"]');
$selectElement
->selectOption($label);
}