S
studlee2
All right, so I decided to write this *bubblegum* script while
practicing my Ruby scripting for windows automation. The test subject
is PhoneTrick.com
Background: When you enter the information, the site usually give you
a bogus reason as to why your call can't be completed. So why not
automate entering the information and have the script continually
submit it until the call is completed.
Can someone tell me how to get the focus to a button that doesn't have
a name? Below is the code so far and the last line is missing a value
between "_____" (feel free to look at PhoneTrick's source code):
/------------------------------------------------------------------/
require 'win32ole'
ie = WIN32OLE.new('InternetExplorer.Application')
ie.navigate("http://www.phonetrick.com")
ie.visible = true
sleep 1 while ie.readyState() != 4
ie.document.all["PhoneNumberToDial"].value ="1231231234"
ie.document.all["CallerID"].value ="3213214321"
ie.document.all["CallerIDname"].value ="Matz"
ie.document.all["VoiceID"].value ="3"
ie.document.all["TextToSay"].value ="Ruby Rocks my Socks!"
#ie.document.all[""].click
/-------------------------------------------------------------------/
Thanks! _Steve
practicing my Ruby scripting for windows automation. The test subject
is PhoneTrick.com
Background: When you enter the information, the site usually give you
a bogus reason as to why your call can't be completed. So why not
automate entering the information and have the script continually
submit it until the call is completed.
Can someone tell me how to get the focus to a button that doesn't have
a name? Below is the code so far and the last line is missing a value
between "_____" (feel free to look at PhoneTrick's source code):
/------------------------------------------------------------------/
require 'win32ole'
ie = WIN32OLE.new('InternetExplorer.Application')
ie.navigate("http://www.phonetrick.com")
ie.visible = true
sleep 1 while ie.readyState() != 4
ie.document.all["PhoneNumberToDial"].value ="1231231234"
ie.document.all["CallerID"].value ="3213214321"
ie.document.all["CallerIDname"].value ="Matz"
ie.document.all["VoiceID"].value ="3"
ie.document.all["TextToSay"].value ="Ruby Rocks my Socks!"
#ie.document.all[""].click
/-------------------------------------------------------------------/
Thanks! _Steve