I've been looking around the forums but haven't come across a way of easily interfacing with internet explorer and accessing the DOM. Below is an example that works in Python.
The basic Idea is to be able to control internet explorer through PowerBASIC as if a user was entering information into forms and pressing submit buttons. I know its possible through OLE/COM but I have no idea where to start with that. Any ideas of what samples I can look at that might help me get started with something like this. Thanks.
Code:
from win32com.client import Dispatch import time ie = Dispatch("InternetExplorer.Application") ie.Visible = 1 # Navigate to google ie.Navigate("http://www.google.com/") while (ie.ReadyState != 4): time.sleep(3) ie.Document.getElementById("q").Value = "test"
Comment