diff --git a/core/modules/simpletest/src/AssertContentTrait.php b/core/modules/simpletest/src/AssertContentTrait.php index a35ae10..9c545c4 100644 --- a/core/modules/simpletest/src/AssertContentTrait.php +++ b/core/modules/simpletest/src/AssertContentTrait.php @@ -1375,7 +1375,7 @@ protected function assertOptionSelectedWithDrupalSelector($drupal_selector, $opt * TRUE on pass, FALSE on fail. */ protected function assertNoOptionSelected($drupal_selector, $option, $message = '', $group = 'Browser') { - $elements = $this->xpath('//select[@drupal_selector=:drupal_selector]//option[@value=:option]', array(':drupal_selector' => $drupal_selector, ':option' => $option)); + $elements = $this->xpath('//select[@data-drupal-selector=:data_drupal_selector]//option[@value=:option]', array(':data_drupal_selector' => $drupal_selector, ':option' => $option)); return $this->assertTrue(isset($elements[0]) && empty($elements[0]['selected']), $message ? $message : SafeMarkup::format('Option @option for field @drupal_selector is not selected.', array('@option' => $option, '@drupal_selector' => $drupal_selector)), $group); }