Issue #2469721 by larowlan, alexpott, dawehner, jibran: Add functionality to store browser output to BrowserTestBase (cherry picked from commit 9d5b5a53)