Extract text from page using XPath

let result = document.evaluate(
  '/html/body/div/main/div[1]/div[3]/div',
  document,
  null,
  XPathResult.STRING_TYPE,
  null
)?.stringValue || ''

return result