Please, help me with Python 2.6 and win32com.
I'm a newbie to Python and I got error when I start the next program:
import pywintypes
from win32com.client import Dispatch
from time import sleep
ie = Dispatch("InternetExplorer.Application")
ie.visible=1
url='hotfile.com'
ie.navigate(url)
while ie.ReadyState !=4:
sleep(1)
print 'OK'
..........................
Error message:
while ie.ReadyState !=4:
...
pywintypes.com_error:
(-2147023179, 'Unknown interface.', None, None)
..........................
But when I change url to, for example, 'yahoo.com' -
there are no errors.
How can result of checking ReadyState may be dependant on url??