[python-win32] frame state test ?
Romain Gilles
romain.gilles at gmail.com
Wed Jan 7 15:43:27 CET 2009
Hi,
I would like to test the state of a frame because when I try to access the
document within the frame I get this error:
File "C:\projects\python\webstress\src\webstress.py", line 124, in
wait_browser
self.ie.poll_while_not_complete()
File "c:\projects\python\webstress\src\IEC.py", line 161, in
poll_while_not_complete
self.poll_while_not_read(frame.document)
File "c:\projects\python\webstress\src\IEC.py", line 165, in
poll_while_not_read
while element.readyState != 'complete' :
File "C:\programs\Python26\Lib\site-packages\win32com\client\dynamic.py",
line 495, in __getattr__
raise pythoncom.com_error, details
com_error: (-2147024891, 'Access is denied.', None, None)
2009-01-07 15:31:42,905,905,(MainThread),webstress,[DEBUG],END :)
But I have tried with the readyState property and I think this property does
not exist in the IHTMLFrameElement interface... As follow:
File "c:\projects\python\webstress\src\IEC.py", line 138, in wait_ready
self.poll_while_not_complete(ie_)
File "c:\projects\python\webstress\src\IEC.py", line 160, in
poll_while_not_complete
self.poll_while_not_read(frame)
File "c:\projects\python\webstress\src\IEC.py", line 165, in
poll_while_not_read
while element.readyState != 'complete' :
File "C:\programs\Python26\Lib\site-packages\win32com\client\dynamic.py",
line 500, in __getattr__
raise AttributeError, "%s.%s" % (self._username_, attr)
AttributeError: <unknown>.readyState
If you have any Idea ...
Thanks,
Romain.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20090107/ec1c72ff/attachment.htm>
More information about the python-win32
mailing list