Controlling Browser using Python?

Viewed 52039

Is it possible to control a web browser like Firefox using Python?

I would want to do things like

  • launch the browser
  • force clicks on URLs
  • take screenshots

etc.

6 Answers

The question is a bit old but I see no references to pywebkitgtk, you should give it a try. I developed spynner using the pyqt.qtwebkit bindings, but programmers who prefer pygtk should try pywebketgtk (which feels more pythonic to me). Note though that Qt bindings are more complete (or at least it was last time I checked).

Related