diff --git a/tests/behat/features/bootstrap/SilverStripe/Framework/Test/Behaviour/CmsFormsContext.php b/tests/behat/features/bootstrap/SilverStripe/Framework/Test/Behaviour/CmsFormsContext.php index e6cccdf27..274f6aad6 100644 --- a/tests/behat/features/bootstrap/SilverStripe/Framework/Test/Behaviour/CmsFormsContext.php +++ b/tests/behat/features/bootstrap/SilverStripe/Framework/Test/Behaviour/CmsFormsContext.php @@ -92,7 +92,7 @@ class CmsFormsContext extends BehatContext { $element = $page->findField($locator); assertNotNull($element, sprintf('HTML field "%s" not found', $locator)); - $actual = $element->getAttribute('value'); + $actual = $element->getValue(); $regex = '/'.preg_quote($html, '/').'/ui'; if (!preg_match($regex, $actual)) { $message = sprintf(