473,327 Members | 2,118 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 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 4086
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: martin z | last post by:
I'm having a lot of trouble figuring out the details of controlling Python compiling. I can compile and embed just fine, but I want some finer granularity on what gets compiled into Python. I can...
0
by: Bart Simpson | last post by:
Hi, I would like to create/delete ftp accounts of windows IIS, and to control MS Media Service under windows 2003 by Python program. A few days ago, I found there is iisftp.vbs vb-script that...
2
by: Matthias Huening | last post by:
Hi, os.startfile('http://www.python.org') works fine on WinXP with IE as default webbrowser. With Mozilla Firefox 0.9 as default webbrowser, however, I get an error. Firefox starts, the page...
21
by: Cigar | last post by:
I am developing a program for a client. She runs a shop where her clients bring in items for sale or short term buyback. Development of the program has been going great but she's mentioned that...
7
by: unacoder | last post by:
Is it possible to request the user's permission to be able to control IE or FireFox windows that are pointed to domains other than the base domain the script is running from? For example, if my...
12
by: PMA | last post by:
Hi all, I am porting a web application from IE 6.0 to FireFox 1.5. I have solved almost all compatibility issues (quite a lot but not too bad) except two of them : 1) Clipboard access thru'...
2
by: Hymer | last post by:
Hello, I have a footer at the end of each article in my blog at http://www.usernomics.com/news/user-interface-design-news.html . The footer looks perfect in IE but has smaller text in Firefox...
3
by: Herb | last post by:
I've found how to use javascript to embed a Windows Media Player in a web page. How do I go about controlling the player in response to user input? There should be calls to start, stop and also...
13
by: trbjr | last post by:
My client-side application works reliably and as intended in Firefox, but not in IE6. The problem seems to be that I do not have control over the page stack in IE, while I do in Firefox. So far I...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.