473,396 Members | 1,938 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,396 software developers and data experts.

DispatchEx('.Application')

When using win32com and DispatchEx to work with a webbrowser, eg:

from win32com.client import DispatchEx

ie = DispatchEx('InternetExplorer.Application')

can anyone suggest the right answer to this?

mf = DispatchEx('MozillaFirefox.Application')

It is an invalid class string, but I don't know how to find the right
class string for Mozilla (or any other window for that matter)? Can
somebody suggest to me an easy way to 'get' this information.

After that I intend to do this:

mf.Navigate('www.groups.google.com.au/etc'')

Will all of these functions work with Firefox or is it only Internet
Explorer(I can use either but I prefer Firefox?)

Jun 13 '06 #1
2 3999
ia****@gmail.com wrote:
When using win32com and DispatchEx to work with a webbrowser, eg:

from win32com.client import DispatchEx

ie = DispatchEx('InternetExplorer.Application')

can anyone suggest the right answer to this?

mf = DispatchEx('MozillaFirefox.Application')

It is an invalid class string, but I don't know how to find the right
class string for Mozilla (or any other window for that matter)? Can
somebody suggest to me an easy way to 'get' this information.

After that I intend to do this:

mf.Navigate('www.groups.google.com.au/etc'')

Will all of these functions work with Firefox or is it only Internet
Explorer(I can use either but I prefer Firefox?)

This might help: http://mail.python.org/pipermail/pyt...ne/003413.html

-Larry Bates
Jun 13 '06 #2
There's a project to create a COM api for Firefox that's identical to IE:

http://www.iol.ie/~locka/mozilla/mozilla.htm

Roger

<ia****@gmail.com> wrote in message news:11**********************@h76g2000cwa.googlegr oups.com...
When using win32com and DispatchEx to work with a webbrowser, eg:

from win32com.client import DispatchEx

ie = DispatchEx('InternetExplorer.Application')

can anyone suggest the right answer to this?

mf = DispatchEx('MozillaFirefox.Application')

It is an invalid class string, but I don't know how to find the right
class string for Mozilla (or any other window for that matter)? Can
somebody suggest to me an easy way to 'get' this information.

After that I intend to do this:

mf.Navigate('www.groups.google.com.au/etc'')

Will all of these functions work with Firefox or is it only Internet
Explorer(I can use either but I prefer Firefox?)


----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Jun 14 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Sam Kong | last post by:
Hello! Now I know how to get dom of ie using the following code. from win32com.client import DispatchEx ie = DispatchEx('internetexplorer.application') ie.visible = 1 ie.navigate(url) dom =...
6
by: angel | last post by:
Hi I want python(win32com) to open a new IE window. Source is: /******/ import win32com.client msie = win32com.client.Dispatch("InternetExplorer.Application") msie.Visible = 1...
1
by: Leszek | last post by:
Hi everybody ! I'm starting my script with: ie = win32com.client.DispatchEx("InternetExplorer.Application") ie.Visible = 1 ie.Navigate("http://www.chip.pl") while ie.Busy == True:...
2
by: calfdog | last post by:
Hello, I was wondering if anyone could tell me why fireEvent works in every language but Python with the latest Internet Explorer? I tried this page that has two listboxes if you select ...
2
by: Chris Curvey | last post by:
Hi all, I have a python script that uses the PAMIE libraries to drive IE. It runs fine from the command line, but it appears to have some permissions problem when I run it via CGI. Here's the...
12
by: Chris Curvey | last post by:
I need to create a set of IE instances that have different sets of session cookies. I thought that using the win32com.DispatchEx function would do this, but it doesn't seem to. In other words ...
15
by: qwweeeit | last post by:
Hi all, Elliot Temple on the 1 June wrote: > How do I make Python press a button on a webpage? I looked at > urllib, but I only see how to open a URL with that. I searched > google but no...
3
by: tyler.schlosser | last post by:
Hi there, I am trying to launch a program called AmiBroker using the command: AB = win32com.client.Dispatch("Broker.Application") However, I have a dual-core CPU and would like to launch two...
1
by: dittytwo | last post by:
Hi there The below code works if you don't try to do anything to the word document which is great (Not :D) I am having problems with the context command both text (i.e initial document with no...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.