HELP: FunFX + Watir not running in windowsXP:OLE error code:80020101
in <Unknown>
Hello everybody, sorry for my poor english.
I want to use the FunFX + Watir to test the Flex WEB applications in
Windows,
and the browser is IE7. But when the flex_app object call some method,
it will
give some error info.
My system info:
WinXP SP3
ruby 1.8.7
watir 1.6.7
funfx 0.2.2
my test sample is :
require 'rubygems'
require 'test/unit'
require 'funfx'
require 'funfx/browser/watir'
class AccordionTest < Test::Unit::TestCase
@ie = Watir::IE.new()
@ie.goto("
http://funfx.rubyforge.org/Flex/FlexObjectTest/
FlexObjectTest.html")
@flex = @ie.flex_app("FlexObjectTest","FlexObjectTest")
puts @flex.methods
tree = @flex.tree(:id=>'treeData').open(:item_renderer,"Container
controls")
end
output log:
>ruby accordion_test.rb
C:/Ruby187/lib/ruby/gems/1.8/gems/funfx-0.2.2/lib/funfx/browser/
watir.rb:25:in `method_missing': unknown property or method
`fireFunFXEvent' (WIN32OLERuntimeError)
HRESULT error code:0x80020006
未知名称。
from C:/Ruby187/lib/ruby/gems/1.8/gems/funfx-0.2.2/lib/funfx/browser/
watir.rb:25:in `fire_event'
from C:/Ruby187/lib/ruby/gems/1.8/gems/funfx-0.2.2/lib/funfx/flex/
element.rb:27:in `fire_event'
from C:/Ruby187/lib/ruby/gems/1.8/gems/funfx-0.2.2/lib/funfx/flex/
element.rb:55:in `flex_invoke'
from C:/Ruby187/lib/ruby/gems/1.8/gems/funfx-0.2.2/lib/funfx/flex/
element.rb:26:in `fire_event'
from C:/Ruby187/lib/ruby/gems/1.8/gems/funfx-0.2.2/lib/funfx/flex/
elements.rb:1087:in `open'
from accordion_test.rb:14
to_yaml_style
before_text
horizontal_list
labels
set_container
bar_chart
.......
i searched in the funfx group and found a method to change the
watir.rb to test this, but
it give the error info :
>ruby accordion_test.rb
C:/Ruby187/lib/ruby/gems/1.8/gems/funfx-0.2.2/lib/funfx/browser/
watir.rb:41:in `method_missing': execScript (WIN32OLERuntimeError)
OLE error code:80020101 in <Unknown>
HRESULT error code:0x80020009
发生意外。
from C:/Ruby187/lib/ruby/gems/1.8/gems/funfx-0.2.2/lib/funfx/browser/
watir.rb:41:in `exec_script'
from C:/Ruby187/lib/ruby/gems/1.8/gems/funfx-0.2.2/lib/funfx/browser/
watir.rb:23:in `fire_event'
from C:/Ruby187/lib/ruby/gems/1.8/gems/funfx-0.2.2/lib/funfx/flex/
element.rb:27:in `fire_event'
from C:/Ruby187/lib/ruby/gems/1.8/gems/funfx-0.2.2/lib/funfx/flex/
element.rb:55:in `flex_invoke'
from C:/Ruby187/lib/ruby/gems/1.8/gems/funfx-0.2.2/lib/funfx/flex/
element.rb:26:in `fire_event'
from C:/Ruby187/lib/ruby/gems/1.8/gems/funfx-0.2.2/lib/funfx/flex/
elements.rb:1087:in `open'
from accordion_test.rb:14
typingspeed=
to_yaml_style
present?
......
i checked the watir.rb file, and maybe this
@ole_obj.ie.Document.parentWindow.execScript(js)
execScript method not defined? someone can help me how to resolve this
problem?