Created
November 5, 2014 18:06
-
-
Save promediacorp/69f0ab0887dee147a38d to your computer and use it in GitHub Desktop.
selenium example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from selenium import webdriver | |
driver = webdriver.Firefox() | |
driver.get("http://lyft.com/cities") | |
links = driver.find_elements_by_xpath("//*[@href]") | |
for i in links: | |
print i.text |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment