On Wed, Sep 9, 2009 at 4:11 PM, mattia<ger...@gmail.com> wrote: > I would like to click on an image in a web page that I retrieve using > urllib in order to trigger an event. > Here is the piece of code with the image that I want to click: > <input type="image" style="border-width: 0px; height: 22px; width: 49px;" > onclick="return checkPhoneField(document.contactFrm, 'mobile');" > alt="sms" src="images/button_sms.bmp" id="smsToMobile" name="smsToMobile"/ >> > > I don't know how to do it (I'm trying using lxml, but any suggestion can > help).
You need to hook into an actual web browser since the event is JavaScript code. Cheers, Chris -- http://blog.rebertia.com -- http://mail.python.org/mailman/listinfo/python-list