Ruby de IE

IEをプログラムで制御したい、そんなときの私の定番はこれです。http://www.tech-notes.dyndns.org/win32ole/ie_lib_document.html

しかしながら、selectタグのoptionの値を取得したくて以下のコードを書いてもうまくない。

select = @ie.document.body.tags("select")
p select
options = select.tags("option")
options.each {|option|
p option
}

オプションを取得できません。

というわけで、optionをまるっと取得してごにょごにょする。

tags = @ie.document.body.tags("option")
tags.each {|tag|
p tag
p tag.innerText
}

とりあえず、目的は達成できました。