Internet Explorer methods

Hi, I’m new to Ruby so apologies if this is a FAQ (though I did an
appropriate amount of Google searching before posting this).

I want to automate a sequence of user actions in Internet Explorer, so my
plan of campaign is to start a Ruby program along these lines:

require 'win32ole’
iefrom = WIN32OLE.new(‘InternetExplorer.Application’)
iefrom.visible = true
iefrom.gohome

In order to make progress, I need to know what methods I can invoke on the
iefrom object (such as gohome, etc.) and how I can access the DOM of the
current HTML page being displayed. Is there a handy reference page for this
stuff?

Thanks in advance for any help, Martin

iefrom.ole_methods.each {|m| puts m.name }
iefrom.document.ole_methods.each {|m| p m.name }

See also http://www.ruby-talk.org/54542

Hope this helps.

···

On Sun, 3 Nov 2002 20:02:26 -0800 “Martin Gilchrist” martinpg@javamarket.com wrote:

require ‘win32ole’
iefrom = WIN32OLE.new(‘InternetExplorer.Application’)
iefrom.visible = true
iefrom.gohome

In order to make progress, I need to know what methods I can invoke on the
iefrom object (such as gohome, etc.) and how I can access the DOM of the
current HTML page being displayed. Is there a handy reference page for this
stuff?


Shusaku tsyk@yk.rim.or.jp