HELP: FunFX + Watir not running in windowsXP:OLE error code:80020101 in <Unknown>

107 views
Skip to first unread message

liu....@zte.com.cn

unread,
Dec 19, 2010, 10:45:51 PM12/19/10
to watir-...@googlegroups.com

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

run with this watir.rb:

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 :

 run with this watir.rb:


>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>
      鐢变簬鍑虹幇閿欒 80020101 鑰屽鑷存椤规搷浣滄棤娉曞畬鎴愩€?
    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?

--------------------------------------------------------
ZTE Information Security Notice: The information contained in this mail is solely property of the sender's organization. This mail communication is confidential. Recipients named above are obligated to maintain secrecy and are not permitted to disclose the contents of this communication to others.
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. Any views expressed in this message are those of the individual sender.
This message has been scanned for viruses and Spam by ZTE Anti-Spam system.
watir_bak.rb
watir.rb

Dave McNulla

unread,
Dec 20, 2010, 10:28:15 AM12/20/10
to Watir General
I experimented with FunFX and Watir a few weeks back. If I recall
correctly, there was a bug that prevented using IE. I will look back
at my browser history to see if I can find the websites with the
issues documented.

Dave
> C:/Ruby187/lib/ruby/gems/1.8/gems/funfx-0.2.2/lib/funfx/flex/elements.rb:10 87:in
> C:/Ruby187/lib/ruby/gems/1.8/gems/funfx-0.2.2/lib/funfx/flex/elements.rb:10 87: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?
>
> --------------------------------------------------------
> ZTE Information Security Notice: The information contained in this mail is solely property of the sender's organization. This mail communication is confidential. Recipients named above are obligated to maintain secrecy and are not permitted to disclose the contents of this communication to others.
> This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. Any views expressed in this message are those of the individual sender.
> This message has been scanned for viruses and Spam by ZTE Anti-Spam system.
>
>  watir_bak.rb
> 1KViewDownload
>
>  watir.rb
> 3KViewDownload

Dave McNulla

unread,
Dec 20, 2010, 11:08:22 AM12/20/10
to Watir General
http://groups.google.com/group/funfx/browse_thread/thread/808ec99051128e62
Sorry, I didn't research it more.

Dave

On Dec 19, 7:45 pm, liu.l...@zte.com.cn wrote:
> C:/Ruby187/lib/ruby/gems/1.8/gems/funfx-0.2.2/lib/funfx/flex/elements.rb:10 87:in
> C:/Ruby187/lib/ruby/gems/1.8/gems/funfx-0.2.2/lib/funfx/flex/elements.rb:10 87: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?
>
> --------------------------------------------------------
> ZTE Information Security Notice: The information contained in this mail is solely property of the sender's organization. This mail communication is confidential. Recipients named above are obligated to maintain secrecy and are not permitted to disclose the contents of this communication to others.
> This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. Any views expressed in this message are those of the individual sender.
> This message has been scanned for viruses and Spam by ZTE Anti-Spam system.
>
>  watir_bak.rb
> 1KViewDownload
>
>  watir.rb
> 3KViewDownload

Chuck van der Linden

unread,
Dec 20, 2010, 2:15:00 PM12/20/10
to Watir General
ok so wait, Dave, that was from two years ago, saying they didn't
support IE, but were hoping to fix that bug as soon as possible.. so
does that link reflect the current state?

In any event all the errors I see there appear to be pointing into the
FunFX code, and not at any of the Watir code, so it would seem this is
really an issue to take to the FunFX group.

On Dec 20, 8:08 am, Dave McNulla <mcnu...@gmail.com> wrote:
> http://groups.google.com/group/funfx/browse_thread/thread/808ec990511...
> > 3KViewDownload- Hide quoted text -
>
> - Show quoted text -

liu....@zte.com.cn

unread,
Dec 20, 2010, 8:34:17 PM12/20/10
to watir-...@googlegroups.com, Watir General

Thank you, I already created a new topic in FunFX group. if had some new info for this i will copy it to here  too.



Chuck van der Linden <sqa...@gmail.com>
发件人: watir-...@googlegroups.com

2010-12-21 03:15
请答复 给 watir-general

       
        收件人:        Watir General <watir-...@googlegroups.com>
        抄送:        
        主题:        [wtr-general] Re: HELP: FunFX + Watir not running in windowsXP:OLE error code:80020101 in <Unknown>



> >       鐢变簬鍑虹幇閿欒 80020101 鑰屽鑷存椤规搷浣滄棤娉曞畬鎴愩 EURO?
--
Before posting, please read http://watir.com/support. In short: search before you ask, be nice.

watir-...@googlegroups.com
http://groups.google.com/group/watir-general
watir-genera...@googlegroups.com

Reply all
Reply to author
Forward
0 new messages