new_contents: """
  Pull an image from a website and save it as a PNG file.
  """
  
  from seleniumbase import BaseCase
  
  
  class ImageTest(BaseCase):
  
      def test_pull_image_from_website(self):
          self.open("https://xkcd.com/1117/")
          selector = "#comic"
          file_name = "comic.png"
          folder = "images_exported"
          self.save_element_as_image_file(selector, file_name, folder)
          print('"%s/%s" has been saved!' % (folder, file_name))
  
subject: Add image test to save an element screenshot to a file