Hi Peet,
You can writing custom JavaScript code in Evaluate JavaScript step for example:
var textValue= window.document.getElementById("pageTitle").textContent;
or use Get property step for saving the text in the h1 tag in a variable.
For mere details please check the following knowledge document: http://support.openview.hp.com/selfsolve/document/KM00884055
Kind regards,