diff --git a/core/modules/link/tests/src/Functional/LinkFieldUITest.php b/core/modules/link/tests/src/Functional/LinkFieldUITest.php index 9e1bdb2025..f056a8c767 100644 --- a/core/modules/link/tests/src/Functional/LinkFieldUITest.php +++ b/core/modules/link/tests/src/Functional/LinkFieldUITest.php @@ -250,7 +250,7 @@ protected function assertNoFieldContainsRawText($field_name, $text) { */ protected function getFieldHtml($field_name) { $css_id = Html::cleanCssIdentifier('edit-' . $field_name . '-wrapper'); - return $this->xpath('//div[@id=:id]', [':id' => $css_id])[0]->getHtml(); + return $this->xpath('//*[@id=:id]', [':id' => $css_id])[0]->getHtml(); } }