diff --git a/core/modules/simpletest/tests/src/Functional/BrowserTestBaseTest.php b/core/modules/simpletest/tests/src/Functional/BrowserTestBaseTest.php
index 796360f..9f72545 100644
--- a/core/modules/simpletest/tests/src/Functional/BrowserTestBaseTest.php
+++ b/core/modules/simpletest/tests/src/Functional/BrowserTestBaseTest.php
@@ -57,7 +57,7 @@ public function testForm() {
     $this->assertSession()->elementExists('css', 'form#form-test-form-test-object');
     $this->assertSession()->fieldExists('bananas');
 
-    $edit = ['bananas' => 'green'];
+    $edit = ['bananas' => 'green', 'strawberry' => 'pink'];
     $this->submitForm($edit, 'Save', 'form-test-form-test-object');
 
     $config_factory = $this->container->get('config.factory');
diff --git a/core/modules/system/tests/modules/form_test/src/FormTestObject.php b/core/modules/system/tests/modules/form_test/src/FormTestObject.php
index 5fb0dae..f57eb53 100644
--- a/core/modules/system/tests/modules/form_test/src/FormTestObject.php
+++ b/core/modules/system/tests/modules/form_test/src/FormTestObject.php
@@ -34,6 +34,10 @@ public function buildForm(array $form, FormStateInterface $form_state) {
       '#type' => 'textfield',
       '#title' => $this->t('Bananas'),
     );
+    $form['strawberry'] = [
+      '#type' => 'hidden',
+      '#value' => 'red',
+    ];
 
     $form['actions']['#type'] = 'actions';
     $form['actions']['submit'] = array(
diff --git a/core/tests/Drupal/Tests/BrowserTestBase.php b/core/tests/Drupal/Tests/BrowserTestBase.php
index 4a8ac3b..f199444 100644
--- a/core/tests/Drupal/Tests/BrowserTestBase.php
+++ b/core/tests/Drupal/Tests/BrowserTestBase.php
@@ -5,6 +5,7 @@
 use Behat\Mink\Driver\GoutteDriver;
 use Behat\Mink\Element\Element;
 use Behat\Mink\Mink;
+use Behat\Mink\Selector\SelectorsHandler;
 use Behat\Mink\Session;
 use Drupal\Component\FileCache\FileCacheFactory;
 use Drupal\Component\Serialization\Yaml;
@@ -313,7 +314,13 @@ protected function initMink() {
       $driver->getClient()->setClient(\Drupal::httpClient());
     }
 
-    $session = new Session($driver);
+    // Per default hidden fields are not available, thus we replace the
+    // 'named_partial' selector with our version that is able to retrieve also
+    // hidden fields.
+    $selectors_handler = new SelectorsHandler();
+    $selectors_handler->registerSelector('named_partial', new PartialNamedIncludingHiddenSelector());
+
+    $session = new Session($driver, $selectors_handler);
     $this->mink = new Mink();
     $this->mink->registerSession('default', $session);
     $this->mink->setDefaultSessionName('default');
diff --git a/core/tests/Drupal/Tests/PartialNamedIncludingHiddenSelector.php b/core/tests/Drupal/Tests/PartialNamedIncludingHiddenSelector.php
new file mode 100644
index 0000000..6915807
--- /dev/null
+++ b/core/tests/Drupal/Tests/PartialNamedIncludingHiddenSelector.php
@@ -0,0 +1,22 @@
+<?php
+
+namespace Drupal\Tests;
+
+use Behat\Mink\Selector\PartialNamedSelector;
+
+/**
+ * Extends PartialNamedSelector to allow retrieval of hidden fields.
+ *
+ * @see \Behat\Mink\Selector\PartialNamedSelector
+ */
+class PartialNamedIncludingHiddenSelector extends PartialNamedSelector {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function __construct() {
+    $this->registerReplacement('%notFieldTypeFilter%', "not(%buttonTypeFilter%)");
+    parent::__construct();
+  }
+
+}
