Skip to content

Instantly share code, notes, and snippets.

@polm
Created July 8, 2011 17:02
Show Gist options
  • Save polm/1072271 to your computer and use it in GitHub Desktop.
Save polm/1072271 to your computer and use it in GitHub Desktop.
Selenium blows up with innerHTML and unicode
from selenium import webdriver
from selenium.common.exceptions import NoSuchElementException
from selenium.webdriver.common.keys import Keys
import time
driver = webdriver.Firefox()
driver.get("http://dampfkraft.com/emdash.html")
print driver.find_element_by_tag_name("p").get_attribute("innerHTML")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment