A Very Poor Man's Vonage Web Service using Watir July 2, '06 Comments [13] Posted in Ruby | Watir Sponsored By Folks keep calling after 9pm and waking the baby. We use Vonage, and I really wish they had a feature where I could indicate "do not call" times. Alas, they don't. So, then I wished for a Vonage Web Service. Nope. So, instead here's a Watir script, recorded with a early version of Michael Kelly and John Hann's port of WatirMaker to Ruby (via "ruby watirmaker.rb > myscript.rb") then edited to taste. #Enable Instant Forward to Voice Mailrequire 'watir'include Watir ie = IE.newie.goto( 'http://www.vonage.com/' ) ie.text_field( :name, 'username' ).set( 'username' )ie.text_field( :name, 'password' ).set( 'password' )ie.button( :name, 'submit' ).click ie.link(:text,"Features").click ie.button( :name, 'callForwardingButton' ).click ie.select_list( :name, 'callForwardingSeconds' ).select( 'Instantly' )ie.text_field( :name, 'singleAddress' ).set( '15035551234' ) ie.button(:value,'Enable').click ie.link(:text,"Log Out").clickie.close And the disable... require 'watir'include Watir ie = IE.newie.goto( 'http://www.vonage.com/' ) ie.text_field( :name, 'username' ).set( 'username')ie.text_field( :name, 'password' ).set( 'password' )ie.button( :name, 'submit' ).click ie.link(:text,"Features").click ie.button( :name, 'callForwardingButton' ).click ie.button(:value,'Disable').click ie.link(:text,"Log Out").clickie.close These now run on a schedule in my house using the Windows Scheduler. If you run them like 'ruby enable.rb -b' they run in the background and you'll never see Internet Explorer. « Capturing Video a Web Camera using WIA -... | Blog Home | Sapphire In Steel - Ruby within Visual S... » About Scott Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author. About Newsletter Sponsored By Hosting By