save_expired_html.py 493 B

123456789101112131415
  1. from evaluator import *
  2. DESCRIPTION = "Test if a model knows how to get the HTML for the entire webpage; not just the body."
  3. TAGS = ['explain', 'html']
  4. question = """
  5. I have a webpage that's open in a chrome browser but the page no longer exists. What javascript should I type in the console to get a copy of the entire page html?
  6. """
  7. TestRecoverExpiredPage = question >> LLMRun() >> SubstringEvaluator("outerHTML")
  8. if __name__ == "__main__":
  9. print(run_test(TestRecoverExpiredPage))