views:

71

answers:

1

Is it possible to use Python to detect when a web page has finished loading in the Firefox browser? I'm trying to automate some browser tasks using Python and this is the major stumbling block for me. Note that this is for small-scale personal use, not a server farm or anything like that. The Firefox browser is in an open window, so I can see what it is doing.

BTW, I'm using Python version 2.6 on a Windows XP PC.

Thanks in advance.

+1  A: 
  1. selenium which can execute your scripts.
  2. PythonExt python extension for mozilla.

    Either of these should work.

tathamr
selenium seems gigantic for such a small job. PythonExt might be workable provided that the interpreter that runs inside the browser can communicate with the external interpreter that is automating the Firefox application.
reckoner