Hi,

The following runs fine in 32bit ie (windows 7), but raise exception when runs
in 64bit ie (windows 8), any idea?

Thanks,
Nam



from comtypes.client import CreateObject
import time

def main():
    ie = CreateObject('InternetExplorer.Application')
    try:
        ie.Visible = True
        ie.Navigate('www.google.com')
        time.sleep(1)
        q = ie.Document.getElementsByName('q')[0]
        q.setAttribute('value', 'python')
        time.sleep(1)
    finally:
        ie.Quit()

if __name__ == '__main__':
    main()


------------------------------------------------------------------------------
Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only - learn more at:
http://p.sf.net/sfu/learnmore_122512
_______________________________________________
comtypes-users mailing list
comtypes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/comtypes-users

Reply via email to