I\'m looking for a way to programatically control a browser on a Mac (i.e. Firefox or Safari or Chrome/-ium or Opera, but not IE) using Python.
The actions I need includ
Take a look at PyShell (an extension to PyXPCOM).
Example:
promptSvc = components.classes["@mozilla.org/embedcomp/prompt-service;1"].\ getService(Components.interfaces.nsIPromptService) promptSvc.alert(None, 'Greeting...', "Hello from Python")