Hi all
Am trying to read an html page using win32com in the following way.
from win32com.client import Dispatch
ie = Dispatch("Inter netExplorer.App lication")
ie.Navigate("ht tps://secure.authoriz e.net/")
doc =ie.Document
print doc.body.innerH TML
with this code am easily able to read the mentioned page from the
pythonwin interactive window, but the same code if I write it in some
*.py file, am not able to read the page.
The following error it throws when I compile the file.
Traceback (most recent call last):
File
"C:\Python23\Li b\site-packages\python win\pywin\frame work\scriptutil s.py",
line 310, in RunScript
exec codeObject in __main__.__dict __
File "C:\Python23\Li b\site-packages\Script 1.py", line 14, in ?
ie.Quit()
File "C:\Python23\Li b\site-packages\win32c om\client\__ini t__.py",
line 456, in __getattr__
return self._ApplyType s_(*args)
File "C:\Python23\Li b\site-packages\win32c om\client\__ini t__.py",
line 446, in _ApplyTypes_
return self._get_good_ object_(
com_error: (-2147352567, 'Exception occurred.', (0, None, None, None,
0, -2147467259), None)
if any body has the answer for this please help me in this.
Thanks and regards
Yogi