rndbit/spynner — Issue #8: getting spynner browser errors when I call click
Author: harijay
Created: 2011-10-24 18:18:46+00:00
State: open

I am trying to get spynner to click on a particular button .
I know the button exists and can get Pyquery to select the button . However when I call click in spynner I get an error on click.

This issue seems similar to whats reported here (http://code.google.com/p/spynner/issues/detail?id=24)

harijay@harijay:~/outlook-notifier$ python spynner-agent.py
/usr/lib/pymodules/python2.6/gtk-2.0/gtk/__init__.py:127: RuntimeWarning: PyOS_InputHook is not available for interactive use of PyGTK
set_interactive(1)
Traceback (most recent call last):
File "spynner-agent.py", line 18, in
agent.click("a[id=lnkHdrcheckmessages]" , wait_load=True)
File "/usr/local/lib/python2.6/dist-packages/spynner/browser.py", line 563, in click
self._runjs_on_jquery("click", jscode)
File "/usr/local/lib/python2.6/dist-packages/spynner/browser.py", line 394, in _runjs_on_jquery
raise SpynnerJavascriptError("error on %s: %s" % (name, code))
spynner.browser.SpynnerJavascriptError: error on click: jq('a[id=lnkHdrcheckmessages]').simulate('click')