rndbit/spynner — Issue #7: browser.html should reflect actual DOM
Author: jaysonsantos
Created: 2011-10-20 19:43:15+00:00
State: open

Hi, I just made a test to fill a search in google however, when I fill an input and try to get it content, browser.html aways give me initial html.

Just try this
import spynner
browser = spynner.Browser()
browser.load('http://www.google.com')
html = browser.html
browser.fill('[name=q]', 'testing')
print html == browser.html
print browser.runjs('jq("[name=q]").val()').toString()