diff --git a/src/WebDriver/WebDriverCheckbox.php b/src/WebDriver/WebDriverCheckbox.php index 70b93f42..7f28e25f 100644 --- a/src/WebDriver/WebDriverCheckbox.php +++ b/src/WebDriver/WebDriverCheckbox.php @@ -231,7 +231,7 @@ private function byVisibleText($text, $partial = false, $select = true): void private function getRelatedElements($value = null): array { - $valueSelector = ($value !== null) ? sprintf(' and @value = %s', XPathEscaper::escapeQuotes($value)) : ''; + $valueSelector = (null !== $value) ? sprintf(' and @value = %s', XPathEscaper::escapeQuotes($value)) : ''; if (null === $formId = $this->element->getAttribute('form')) { $form = $this->element->findElement(WebDriverBy::xpath('ancestor::form')); if ('' === $formId = (string) $form->getAttribute('id')) {