Mercurial > org-tools
comparison play-browser.py @ 10:83e16df2288a
still experimenting
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Tue, 25 Oct 2011 07:52:02 -0700 |
parents | d09937a6cb4b |
children |
comparison
equal
deleted
inserted
replaced
9:d09937a6cb4b | 10:83e16df2288a |
---|---|
7 import time | 7 import time |
8 | 8 |
9 # Create a new instance of the Firefox driver | 9 # Create a new instance of the Firefox driver |
10 #driver = webdriver.Firefox() | 10 #driver = webdriver.Firefox() |
11 | 11 |
12 driver = webdriver.Remote("http://localhost:4444/wd/hub", webdriver.DesiredCapabilities.FIREFOX) | 12 driver = webdriver.Remote("http://localhost:7055/wd/hub", webdriver.DesiredCapabilities.FIREFOX) |
13 | |
14 | 13 |
15 # go to the google home page | 14 # go to the google home page |
16 driver.get("http://tycho.usno.navy.mil/cgi-bin/timer.pl") | 15 driver.get("http://tycho.usno.navy.mil/cgi-bin/timer.pl") |
17 | 16 |
18 # you HAVE to quit if you're reusing firefox sessions | 17 time.sleep(2) |
18 | |
19 driver.refresh() | |
20 | |
21 time.sleep(2) | |
22 | |
23 driver.refresh() | |
24 | |
25 time.sleep(2) | |
26 | |
27 | |
28 | |
19 driver.quit() | 29 driver.quit() |