frankrentef wrote:
THNX for your response.  Based on the authors code it's very simple.

from cPAMIE import PAMIE
ie=PAMIE ()

#ie.navigate ("google.com")

#ie.linkClick
#ie.textBoxSet
#ie.writeScript

ie.navigate ('https://login.yahoo.com/config/mail?.intl=us')
#ie.scriptWrite ()

ie.scriptWrite()


Below is the error I get...

 File "C:\Python24\lib\site-packages\cPAMIE.py", line 1837, in
scriptWrite
    nameProp = getattr(x,"nameProp")
  File "C:\Python24\Lib\site-packages\win32com\client\dynamic.py",
line 500, in __getattr__
    raise AttributeError, "%s.%s" % (self._username_, attr)
AttributeError: <unknown>.nameProp


I'm afraid I'm no IE expert (read: never use it if I can
avoid it) but I suspect here a combination of slightly
flaky code in the Python module plus, maybe, a change in
the IE dom object model.

If you change lines 1832-1836 of cPAMIE.py to be as follows:

<patch>
           for j in range(doc.length):
x = doc[j] etype = getattr(x,"type", "")
               name = getattr(x,"name", "")
               nameProp = getattr(x,"nameProp", "")

</patch>


then at least some kind of output is produced. But I'm
not entirely sure what this function is trying to achieve
so I don't guarantee it's doing the right thing yet.

TJG
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to