* The JSON decoded drupalSettings value from the current page.
*/
protected function getDrupalSettings() {
- $html = $this->getSession()->getPage()->getHtml();
+ $html = $this->getSession()->getPage()->getContent();
if (preg_match('@<script type="application/json" data-drupal-selector="drupal-settings-json">([^<]*)</script>@', $html, $matches)) {
return Json::decode($matches[1]);
}