protected function EntityBrowserWebDriverTestBase::assertCheckboxNotExistsByValue in Entity Browser 8
Same name and namespace in other branches
- 8.2 tests/src/FunctionalJavascript/EntityBrowserWebDriverTestBase.php \Drupal\Tests\entity_browser\FunctionalJavascript\EntityBrowserWebDriverTestBase::assertCheckboxNotExistsByValue()
Checks that a specific checkbox input element does not exist on the current page.
Parameters
string $value: The string value of the radio element.
Return value
\Behat\Mink\Element\NodeElement The radio input form element.
Throws
\Behat\Mink\Exception\ElementNotFoundException
File
- tests/
src/ FunctionalJavascript/ EntityBrowserWebDriverTestBase.php, line 298
Class
- EntityBrowserWebDriverTestBase
- Base class for Entity browser Javascript functional tests.
Namespace
Drupal\Tests\entity_browser\FunctionalJavascriptCode
protected function assertCheckboxNotExistsByValue($value) {
$value = (string) $value;
return $this
->assertSession()
->elementNotExists('xpath', "//input[contains(@type, 'checkbox') and contains(@value, '" . $value . "')]");
}