<div>I have thrown together a script which reads a list or urls from a txt file and navigates to each url while recording how long it takes for the page to render completely using PAMIE. For some reason I randomly get crashes reporting:
</div>
<div> </div>
<div>
<p> File "c:\Python24\scripts\PAM.py", line 30, in IE_Invoke<br> ie.Navigate(url)<br> File "C:\Python24\Lib\site-packages\win32com\client\dynamic.py", line 496, in<br>__getattr__<br> raise AttributeError, "%s.%s" % (self._username_, attr)
<br>AttributeError: InternetExplorer.Application.Navigate</p>
<p>The code I use to browse through the list;</p>
<p>for x in f:<br> ie = IE_Invoke(x)<br> starttime = time.clock() #get timestamp at IE startup<br> wait(ie) #wait for IE to completetly load page<br> stoptime = time.clock() #get timestamp at IE completion
<br> elapsed = stoptime-starttime #calculate the runtime<br> ie.QUIT()<br> excel_open.xlApp.ActiveSheet.Cells(Row,1).Value = x <br> excel_open.xlApp.ActiveSheet.Cells(Row,2).Value = elapsed<br>
<br> Row = Row+1<br> count_non_no_tool = count_non_no_tool + 1<br> total_non_no_tool = elapsed + total_non_no_tool </p>
<p> </p>
<p> f = f.close()</p>
<p> </p>
<p>The script crashes in different locations when it crashes so it doesn't appear to be one url causing the problem. Any ideas?</p></div>