Im trying to take a snapshot of the webpage i open but i need to delay the second part of the code so that the program has time to open the page
Here is the code
taking a screenshot with selenium webdriver bindings for python:
#!/usr/bin/env python from selenium import webdriver browser = webdriver.Firefox() browser.get('http://www.google.com/') browser.save_screenshot('screenshot.png') browser.quit()