FRAMEWORK » SELENIUM

Screenshot

Take a screenshot

Both are the same, therefore both should work.

python
browser.save_screenshot('/path/to/screenshot.png')
browser.get_screenshot_as_file('/path/to/screenshot.png')