Hi, I just go through the google code of watir flash and try to use
the example code.
when I use the URL of http://www.geocities.com/paulocaroli/flash/colors.html
the error says can not find the id with "clickcolors"
after that I use the 'file:///E:/ruby/flash/changingcolors/
changingcolors/colors.html'
the error says

D:/ruby/lib/ruby/gems/1.8/gems/flash_watir-1.1.0/lib/flash_watir/
flash.rb:91:in
`execute': Unable to execute the method on flash document
['clickcolors'].click()
; (NoMethodError)

the example code:

# include the controller
require 'flash_watir'
include FireWatir
# create an instance of the controller
browser = Firefox.new
# go to the flash page you want to test
browser.goto('file:///E:/ruby/flash/changingcolors/changingcolors/
colors.html')
# call the default methods available in flash

percentage_loaded = browser.flash(:id, "clickcolors").percent_loaded
puts percentage_loaded
# call the methods you have exposed on the flash application
browser.flash(:id, "clickcolors").click
rectangle_color = browser.flash(:id, "clickcolors").getColor
puts rectangle_color

==========================
the console output:

E:\ruby\script>1.rb
100
D:/ruby/lib/ruby/gems/1.8/gems/flash_watir-1.1.0/lib/flash_watir/
flash.rb:91:in
`execute': Unable to execute the method on flash document
['clickcolors'].click()
; (NoMethodError)
        from D:/ruby/lib/ruby/gems/1.8/gems/flash_watir-1.1.0/lib/
flash_watir/fl
ash.rb:82:in `process_request'
        from D:/ruby/lib/ruby/gems/1.8/gems/flash_watir-1.1.0/lib/
flash_watir/fl
ash.rb:77:in `method_missing'
        from E:/ruby/script/1.rb:13

Is there anyone who have experience in flash?
Thanks a lot in advance
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to