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('
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
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