I\'m using the Python bindings to run Selenium WebDriver:
from selenium import webdriver wd = webdriver.Firefox()
I know I can grab a webel
WebElement element = driver.findElement(By.id("foo")); String contents = (String)((JavascriptExecutor)driver).executeScript("return arguments[0].innerHTML;", element);
This code really works to get JavaScript from source as well!