473,554 Members | 2,826 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4091
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.c om>
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.c om>
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
1553
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 find little to no documentation of the compiler flags besides the ones essential to operating system compatibility. How does one choose what...
0
1897
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 can creat/delete IIS ftp account. But I've suspected the iisftp cannot configure detailed configueration. (ex. It can't configure anonymous-login...
2
3479
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 gets loaded and then Python gives me an error message (Traceback below). The same is true for the webbowser module. Is this a Python problem or a...
21
1759
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 there is a 'feature' coming up in the next couple of weeks that she'd like me to implement that has me a bit worried. My client has told me a...
7
5317
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 page launches a new window pointing to a web site originating from a different domain, is it possible for my script to request and gain access to the...
12
6153
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' JavaScript (programmatical copy and paste actions) 2) Monitoring and driving Insert/Overwrite mode on input fields
2
4633
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 and Opera. For some reason, the CSS does not seem to be controlling the font size. The CSS and HTML are below. Does anyone know how I can get the...
3
13487
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 to play at a certain position. For instance, I'd like to have a video playing. Along with that, I'd present a list of 10 chapters within the...
13
1629
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 have not figured out how to use “focus” to assure proper page sequencing. Here is an overview of my client-side application. There are 6 screens...
0
7579
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8013
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7531
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5136
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3539
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3530
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1994
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1112
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
814
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.