471,350 Members | 1,780 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 software developers and data experts.

Controlling Firefox with Python

Hi,

I would like to be able to control Firefox through Python. I see
there's pyWinAuto, which might work if they had good documentation.
I've also messed with win32 modules, but I don't think Firefox will
work with those too nicely since it isn't a COM-based program.

I've also found some Python Firefox XUL scripting information that is
at least 2 years old and also not documented well. I really need to be
able to cycle through the tabs that are open in a current Firefox
session and search for a specifically labeled tab.

Any ideas on how to do this would be appreciated. I am using Windows
XP with Python 2.4. Thanks!

Mike

Jun 19 '07 #1
3 3990
Hi!

See Mozlab: http://dev.hyperstruct.net/mozlab

and give a report, please.
Thank you in advance.

Michel Claveau
Jun 19 '07 #2
On Jun 19, 4:35 pm, "Méta-MCI" <enleverlesX.X...@XmclaveauX.com>
wrote:
Hi!

See Mozlab: http://dev.hyperstruct.net/mozlab

and give a report, please.
Thank you in advance.

Michel Claveau
There seems to be some kind of weird bug with the current version of
MozLab. When I use telnet on my Windows XP box, it tries to evaluate
every character I type, which only results in lots of syntax errors. I
tried Putty in raw mode, and it works, but not well. Each line doesn't
get output to the far left. Instead, each line is dropped down one
line and tabbed over so it's one character ahead of the previous line.

I assume you think I can use Python to telnet to a running MozLab to
execute my commands? I will need to be able to do this to all the
users on a network and installing extensions on everyone's PC will be
somewhat difficult.

Mike

Jun 20 '07 #3
On Jun 20, 9:05 am, kyoso...@gmail.com wrote:
On Jun 19, 4:35 pm, "Méta-MCI" <enleverlesX.X...@XmclaveauX.com>
wrote:
Hi!
See Mozlab: http://dev.hyperstruct.net/mozlab
and give a report, please.
Thank you in advance.
Michel Claveau

There seems to be some kind of weird bug with the current version of
MozLab. When I use telnet on my Windows XP box, it tries to evaluate
every character I type, which only results in lots of syntax errors. I
tried Putty in raw mode, and it works, but not well. Each line doesn't
get output to the far left. Instead, each line is dropped down one
line and tabbed over so it's one character ahead of the previous line.

I assume you think I can use Python to telnet to a running MozLab to
execute my commands? I will need to be able to do this to all the
users on a network and installing extensions on everyone's PC will be
somewhat difficult.

Mike
UPDATE: I can do tab traversal in Firefox using the sendkeys method. I
just need a way to read the label on the current tab or the title of
the Firefox window.

Any ideas?

Mike

Jun 20 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Matthias Huening | last post: by
21 posts views Thread by Cigar | last post: by
3 posts views Thread by Herb | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.