Resurrecting a month old thread.. (listed at
http://groups-beta.google.com/group/comp.lang.python/browse_thread/thread/2f4e50e1e316eef4/5924203f822f7f4b?q=cal_2pac&rnum=3#5924203f822f7f4b)
Somehow - responses to that thread are not being brought up in
chronological order. Thus the creatio
Resurrecting an old thread..
It seems that this solution does not return events on objects within
frames in webpages eg . if you go to www.andersondirect.com - the page
is composed of three frames called as topFrame main and address. Now
when I click on say 'Select a Vehicle' which is within main -
> This might make a good candidate for the Cookbook (or there's
> a collection of IE automation examples at win32com.de)
> so anybody else trying to do something similar knows some of the
pitfalls.
This thread has been very valuable for me and has provided
clarifications which I could not get afte
Thanks for the response again. The solution is pretty close but not yet
complete
This is what I observed.
a) I tried to use the delay mechanism as suggested below
ie.
ie.Navigate('www.google.com')
while ie.ReadyState !- 4
time.sleep(0.5)
d=win32com.client.DispatchWithEvents(ie.Document, Doc
Thanks for your prompt responses and the code.
However, when I run the code I get com error
d=win32com.client.DispatchWithEvents(ie.Document, Doc_Events)
File "C:\Python23\lib\site-packages\win32com\client\__init__.py",
line 199, in __getattr__
return getattr(self._obj_, attr)
File "C:\Pyt
Hi
Thanks for the response and for the code.
However, I want to trap events like mouse click on the HTML document
loaded by the web browser control. The code mentioned below provides
events from the web browser control. I need to find out on which
particular HTML tag did the user click for example.
I am trying to trap events from internet explorer eg. when user clicks
on an html link - I need to get notified for that event.
After looking through the newgroups / internet and reading through
various sections in programming python on win32 - I understand that
this can be done using DispatchWith