public function PermissionsByTermContext::selectIndexInDropdown in Permissions by Term 8
@Then /^I select index (\d+) in dropdown named "([^"]*)"$/
File
- tests/
src/ Behat/ Context/ PermissionsByTermContext.php, line 123
Class
- PermissionsByTermContext
- Class PermissionsByTermContext
Namespace
Drupal\Tests\permissions_by_term\Behat\ContextCode
public function selectIndexInDropdown($index, $name) {
$this
->getSession()
->evaluateScript('document.getElementsByName("' . $name . '")[0].selectedIndex = ' . $index . ';');
}