470,592 Members | 2,120 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,592 developers. It's quick & easy.

RE: Remote control of firefox (mozilla) from a python program

hi mike....

you might look at/into selenium, or firewatir....

check the spellings!

-----Original Message-----
From: py*****************************************@python .org
[mailto:py***************************************** @python.org]On Behalf
Of Mike Driscoll
Sent: Monday, November 10, 2008 1:28 PM
To: py*********@python.org
Subject: Re: Remote control of firefox (mozilla) from a python program
On Nov 10, 10:23*am, Scott <rsda...@linuxden.comwrote:
I have a requirement to control a firefox web browser from an external
python program. *The python program running under linux from a command
shell needs to first find all open firefox web browser windows read
the URL currently displayed in each web browser and if the URL matches
a particular regular expression it needs to get/set form fields
displayed in the web browser. *Basically I need something like Windows
COM and Internet Explorer where you can use COM to get/set form
elements in the web page as well as post the web page. *Does xpcom
provide this? *Is there some other method? *Mozilla has an xpcom
interface but I am not sure it is available to a python program
running in a different process as my scenario describes. *At some
point I will need this python program to run under Mac OS X but for
now I need something running under Linux.
There is some old xpcom bindings, but I don't think they were very
helpful. You might be able to use mechanize:


Or you might want to check out IronPython's Silverlight/Moonlight API.
I don't think that's quite done for Linux, but it's getting there and
when it's done, it might work for you...


Nov 10 '08 #1
0 1394

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Matthias Huening | last post: by
5 posts views Thread by SPE - Stani's Python Editor | last post: by
8 posts views Thread by Dustan | last post: by
8 posts views Thread by Matt Kruse | last post: by
9 posts views Thread by johnd126 | last post: by
2 posts views Thread by zelegolas | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.