Another MSIE Python Question

Ralph A. Gable r.gable at mchsi.com
Sat Jun 19 16:17:26 CEST 2004


I am opening MSIE6 with this code:

    ie=Dispatch('InternetExplorer.Application.1')
    ie.Navigate(url)
    while ie.Busy:
        time.sleep(0.1)
    ied=ie.Document
    while ied.ReadyState != 'complete':
        time.sleep(0.1)
        
    ieh=ied.documentElement.outerHTML


When opening Word or Excel, and using Dispatch('Word.Application') or 
Dispatch('Excel.Application'), the app comes up and is available and can be 
brought up on the screen by setting .Visible = 1. When using the above code,
IE will not come up. I have to open IE by clicking on its icon and then the
above code will work. If I don't do that I get a stack dump and my python
program crashes.

Any help would be appreciated.



More information about the Python-list mailing list