title: screenshot of expected size on existing selenium test cases?
body: <p>I have a Chrome selenium project which is created in python, and I am trying to add screenshot feature with the existing test cases.</p>
  <p><strong>Details</strong>:</p>
  <ol>
  <li><p>In my environment.py file, I have the centralized driver defined with such options.</p>
  <pre><code> options.add_argument(&quot;--headless&quot;)
   options.add_argument(&quot;--no-sandbox&quot;)
   options.add_argument(&quot;--disable-setuid-sandbox&quot;)
   # options.add_argument(&quot;--window-size=1920,1080&quot;)
   options.add_argument(&quot;--disable-gpu&quot;)
   driver = webdriver.Chrome(context.chromedriver_path, chrome_options=options)
  </code></pre>
  </li>
  </ol>
  <p>2 here is my centralized screen_shot function call:</p>
  <pre><code>def get_screenshot(self, filename=None):
      if filename is None:
          file_name = .... 
  
      full_path = &quot;{}/{}.{}&quot;.format(self.results_folder, filename, &quot;png&quot;)
      self.logger.info(&quot;Saving screenshot to %s&quot; % full_path)
      self.driver.save_screenshot(full_path)
      allure.attach(
          self.driver.get_screenshot_as_png(),
          name=full_path,
          attachment_type=AttachmentType.PNG,
      )
  </code></pre>
  <ol start="3">
  <li><p>And here is one of my individual test cases that is to make a screenshot using this function.</p>
  <pre><code>  def step_when_the_user_to_verify_the_created_profile(context):
         context.navigationbar.clickProfileLink()
         context.screenshot.save()
         context.blueprintdetailpage.clickAddingPlan()
         context.screenshot.save()
  </code></pre>
  </li>
  </ol>
  <p>Everything works, but the resolution of the saved screenshot is always of 800 x 600, while I am looking for is of 1920 X 1080.  If I was to set the resolution of 1920 X 1080 as the extra driver option, which is the line I have currently commented in the environment.py file, then I guess all my test cases will be broken.</p>
  <p>So my question is how to keep my existing test cases as they are, and at the same time, I can generate the screenshot of size 1920 X 1080 ?</p>
  <p>Thanks for the tips.</p>
  <p>Chun</p>