How do I get the reference of window in DOM?
Sam Kong
ssk at chol.net
Thu Mar 25 17:05:15 EST 2004
Hello!
Now I know how to get dom of ie using the following code.
from win32com.client import DispatchEx
ie = DispatchEx('internetexplorer.application')
ie.visible = 1
ie.navigate(url)
dom = ie.Document
My question is that how do I get the window reference from dom?
I want to close the ie from my Python code.
I don't know how to access the window object.
ie.Window is not the answer.
Thanks in advance.
Sam
More information about the Python-list
mailing list