title: Selenium how to save screenshot to specific directory in Python
body: <p>I would like to take a screenshot for my selenium driver and save it to a specific directory. Right now, I can run:</p>
  <pre><code>driver.save_screenshot('1.png')
  </code></pre>
  <p>and it saves the screenshot within the same directory as my python script. However, I would like to save it within a subdirectory of my script.
  I tried the following for each attempt, I have no idea where the screenshot was saved on my machine:</p>
  <pre><code>path = os.path.join(os.getcwd(), 'Screenshots', '1.png')
  driver.save_screenshot(path)
  </code></pre>
  <pre><code>driver.save_screenshot('./Screenshots/1.png')
  </code></pre>
  <pre><code>driver.save_screenshot('Screenshots/1.png')
  </code></pre>