Search code examples
javascriptfirefoxpluginsgreasemonkeymechanize

Greasemonkey-like Firefox plugin for automatic browsing


Is there a plug-in for Firefox that would allow user's Javascript code like Greasemonkey and be able to browse from page to page?

I'd like to write a script to:

  1. Log in to a website.
  2. Follow several links.
  3. Make a GET request to that host periodically with given data and time intervals.
  4. Make a POST request based on the results of the previous in-loop requests.

Now I use Python's mechanize for a browser so I'm looking for something with similar (maybe not that rich) functionality within Firefox. Do you have experience with that type of things? What should I check out?


Solution

  • Selenium - which has an interface for recording and running tests inside the browser but can also export tests in many languages including Python for running as a suite in the SeleniumRC tool.

    Or

    Chickenfoot (You'll probably need to use setTimeout for the repeating requests.)

    alt text
    (source: mit.edu)