We've tested this code in both iOS and Windows. In iOS, it saves as expected in the base directory of the .py file. However, when running on Windows, the screenshot does not save anywhere on the machine. The code for taking the screenshot is:
def test_python_webpage(self):
driver = self.driver
driver.maximize_window()
driver.get(self.base_url + "/")
driver.get_screenshot_as_file('base_url.png')
Any thoughts on why this file isn't saving when executed on a Windows machine, but working fine on iOS?
Note: This is happening with all 3 browsers (IE 11, Chrome 38.0.2125.111, and FF). I'm working with PyCharm 3.4.1 to execute the scripts.