[python-win32] Intenet explorer using PythonWin Help
Tim Roberts
timr at probo.com
Thu Dec 23 02:06:30 CET 2010
Pat McGuire wrote:
> Hi Tim,
>
> Code is below with psuedo information
As I suggested in my first response, your first problem is that you are
not waiting for the submit to complete. The IE control is asynchronous;
it returns immediately, before the request has actually finished. You
need another wait loop after the submit:
while ie.Busy:
win32api.sleep(1000)
> if ie:
> print ie.LocationURL
> print ie.LocationName
> print ie
> print ie.Document.title
> print ie.Document.location
> print ie.Document.forms
Not sure what you expect the "if ie:" to do there. I believe a COM
object will always return True in Python.
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the python-win32
mailing list