title: Is there a way to save and retrieve files while selenium tests are running in Azure Hosted Agent?
body: <p>I have a suite of Selenium Tests that run inside Windows 2019 Azure Hosted Agent. Each Test captures an image of a particular web page.</p>
  <p>For future test runs these images will be used as a baseline when comparing the current/actual state of a web page.</p>
  <p>Is there a way to save and retrieve these baseline images somewhere when tests are running in the hosted agent?</p>
  <p>Notes:</p>
  <ul>
  <li><p>Currently I am using a workaround so I can save and upload the baseline images generated from the hosted agent. Force the tests to fail and attach the images in the test results via <code>TestContext.AddResultFile.</code> Then download each image and save it to local repo and then sync in azure repo. I don't want to do this any longer because there are hundreds of images to be generated already.</p>
  </li>
  <li><p>I can't use the baseline images generated from my local machine because the hosted agent has a different viewport. Hence, the image comparison will always find a difference between the baseline and actual.</p>
  </li>
  </ul>