Skip to content

Instantly share code, notes, and snippets.

@gchiam
Last active November 2, 2015 01:35
Show Gist options
  • Save gchiam/3f4334ee45eb7f2e41e0 to your computer and use it in GitHub Desktop.
Save gchiam/3f4334ee45eb7f2e41e0 to your computer and use it in GitHub Desktop.
"""Testing chromote library.
https://github.com/iiSeymour/chromote
"""
from __future__ import print_function
import itertools
import time
from chromote import Chromote
SLEEP = 10
chrome = Chromote()
tab = chrome.tabs[0]
sites = [
'https://github.com',
'http://stackoverflow.com',
]
for site in itertools.cycle(sites):
print ('Switch to %s.' % site)
tab.set_url(site)
time.sleep(SLEEP)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment