Mercurial > org-tools
view refresh-browser.py @ 10:83e16df2288a
still experimenting
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Tue, 25 Oct 2011 07:52:02 -0700 |
parents | d09937a6cb4b |
children |
line wrap: on
line source
1 #!/usr/bin/env python4 from selenium import webdriver5 from selenium.common.exceptions import TimeoutException6 from selenium.webdriver.support.ui import WebDriverWait # available since 2.4.07 import time8 import sys11 # Create a new instance of the Firefox driver12 #driver = webdriver.Firefox()14 driver = webdriver.Remote("http://localhost:4444/wd/hub", webdriver.DesiredCapabilities.FIREFOX)17 # go to the google home page18 driver.get(sys.argv[1])20 # you HAVE to quit if you're reusing firefox sessions21 driver.quit()