Skip to content

Instantly share code, notes, and snippets.

@promediacorp
Created November 5, 2014 18:06
Show Gist options
  • Save promediacorp/69f0ab0887dee147a38d to your computer and use it in GitHub Desktop.
Save promediacorp/69f0ab0887dee147a38d to your computer and use it in GitHub Desktop.
selenium example
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