Mercurial > org-tools
diff 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 diff
1.1 --- a/refresh-browser.py Tue Oct 25 05:33:36 2011 -0700 1.2 +++ b/refresh-browser.py Tue Oct 25 07:52:02 2011 -0700 1.3 @@ -5,6 +5,8 @@ 1.4 from selenium.common.exceptions import TimeoutException 1.5 from selenium.webdriver.support.ui import WebDriverWait # available since 2.4.0 1.6 import time 1.7 +import sys 1.8 + 1.9 1.10 # Create a new instance of the Firefox driver 1.11 #driver = webdriver.Firefox() 1.12 @@ -13,7 +15,7 @@ 1.13 1.14 1.15 # go to the google home page 1.16 -driver.get("http://tycho.usno.navy.mil/cgi-bin/timer.pl") 1.17 +driver.get(sys.argv[1]) 1.18 1.19 # you HAVE to quit if you're reusing firefox sessions 1.20 driver.quit()