Created
July 8, 2011 17:02
-
-
Save polm/1072271 to your computer and use it in GitHub Desktop.
Selenium blows up with innerHTML and unicode
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 | |
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