Source

PunkyBrowster / examples / hello_punky.py

Full commit
"""
Visit a bunch of pages, taking a snapshot of each one.
"""
from punky import Browster

browser = Browster()
browser.create_webview(show=True)

browser.load('./hello_punky.html')
browser.wait(3)
browser.save_snapshot('1.png')

browser.click_link('#my-anchor')
browser.wait(3)
browser.save_snapshot('2.png')

browser.load('http://www.yahoo.com')
browser.wait(3)
browser.save_snapshot('3.png')

browser.load('http://www.google.com')
browser.wait(3)
browser.save_snapshot('4.png')