watirでのフレームの
あるページのログイン処理の例
$KCODE="SJIS" require 'kconv' require 'rubygems'; require 'watir'; #$KCODE="SJIS" ie=Watir::IE.new; ie.goto('https://xxx.yyyy.com') ; f1=ie.text_field(:name,"user").set('xxxusernamexxxx'); f2=ie.text_field(:name,"pw").set('xxxxpasswdxxxx'); f3=ie.form(:name,"UserNameEntry").submit() sleep 10 ie.frame(:name,"Main").frame(:name, "Menu").link(:href,/logout/).click ie.frame(:name,"Main").frame(:name,"mainpage").link(:href,/Logout/).click ie.close