I'm trying to use spynner to auto-click some button in the HTML source code as a small test. But I'm receiving this error. Traceback (most recent call last): File "build\bdist.win32\egg\spynner\browser.py", line 287, in _on_reply AttributeError: 'Browser' object has no attribute 'manager'
Below is my code, which is following the guide here:https://github.com/makinacorpus/spynner/blob/master/examples/webkit_methods.py
import spynner
import libxml2
proxy_ip = "xxx.xxx.xxx.xxx";
browser = spynner.Browser()
# setting proxy ip
browser.set_proxy(proxy_ip :'8080');
browser.show()
try:
browser.load(url='http://xxx.html', load_timeout=10, tries=1)
except spynner.SpynnerTimeout:
print 'Timeout.'
else:
browser.wk_click('a[id="voteProjectBtn_10353150"]', wait_load=True)
browser.close()
I'm using Python 2.7, thanks for the help!