Re: Refreshing an IE Webpage

2009-02-02 Thread K-Dawg
Please disregard... I was making it harder than it had to be I think. The following seems to be running fine. Whether its doing what I want I will know in a little bit if the page in my browser times out import win32com.client, pythoncom from time import sleep ie=win32com.client.Dispatch('

Re: Refreshing an IE Webpage

2009-02-02 Thread K-Dawg
I have also tried to do this with mechanize: import mechanize import time br = mechanize.Browser() br.open("URL") while True: br.reload() time.sleep(300) After a bunch of time, I get the following error: C:\>SDE_KeepAlive-v2.py Traceback (most recent call last): File "C:\SDE_KeepAlive

Refreshing an IE Webpage

2009-02-02 Thread K-Dawg
Hi, I am trying to get and then refresh a page in IE with a Python script. I just want to get a page, then refresh it every 5 minutes. Below is the code I am attempting. It is erroring out on the id=ie.Document.Script._oleobj_.GetIDsOfNames('window.location.reload()') #tried with and without pa