Issue #2773389 by martin107, claudiu.cristea, klausi: BrowserTestBase::getTextContent() wrongly returns the raw content