Reloading a web page

I am trying to load up some stock charts for a quick
review. I can load the pages without a problem.
However I get three open pages where I want to open
and then reload. Any thoughts? The following give
this error "open_web.rb:10:in method_missing': Unknown property or method reload’
(WIN32OLERuntimeError)

require ‘win32ole’

symbol = [‘xle’, ‘xlf’]
web_page =
WIN32OLE.new(‘InternetExplorer.Application’)
web_page.visible = true
web_page.navigate(“http://finance.yahoo.com/charts#chart3:symbol=spy;range=3m;indicator=sma(10,20)+split+macd+volumema(20);charttype=ohlc;crosshair=on;logscale=on;source=undefined.”)

symbol.each do |x|
sleep 10

web_page.reload(“http://finance.yahoo.com/charts#chart3:symbol=spy;range=3m;indicator=sma(10,20)+split+macd+volumema(20);charttype=ohlc;crosshair=on;logscale=on;source=undefined.”)
end

[Jeffrey B. [email protected], 2007-08-05 06.23 CEST]

symbol = [‘xle’, ‘xlf’]
web_page =
WIN32OLE.new(‘InternetExplorer.Application’)
web_page.visible = true
web_page.navigate(“http://finance.yahoo.com/charts#chart3:symbol=spy;range=3m;indicator=sma(10,20)+split+macd+volumema(20);charttype=ohlc;crosshair=on;logscale=on;source=undefined.”)

symbol.each do |x|
sleep 10

web_page.reload(“http://finance.yahoo.com/charts#chart3:symbol=spy;range=3m;indicator=sma(10,20)+split+macd+volumema(20);charttype=ohlc;crosshair=on;logscale=on;source=undefined.”)
end

Here you have documentation about the #navigate and #refresh methods:

Navigate method (Internet Explorer) | Microsoft Learn
Refresh method (Internet Explorer) | Microsoft Learn

But to control Internet Explorers, I think you should be using Watir:

http://wtr.rubyforge.org/

It makes the task incredibly easy.

Good luck.