Hi:
 
I am facing the exact same issue as detailed below. Just wondering if any of you resolved it already.
Meantime, I am going to explore the suggestion given by Bret and will post if I get somewhere.
 
Thanks,
Ravi 
 
---------------------------------------------------------------------------------------------------------------------------------------
 
=== from a post dt. 08/23/2005 ===
It looks like you have the right object, but it has been heavily customized 
-- as you know. You're probably going to have rewrite the TextField class 
to support this control.

Fundamentally that means doing ie.text_field(:id, 
/elm1/).getObject.ole_methods to see what methods are supported and then 
using trial and error and MS doc to figure out which will help you do what 
you want...

I'd start by removing the focus call.

Bret

At 12:36 AM 8/23/2005, Thomas Øhrbom wrote:
>Hi!
>I'm still struggling with this problem so I'm going to try this mailing 
>list once more. Sorry about the repeat...
>
>Our main product uses a _javascript_ HTML-editor (much like TinyMCE[1]) to
>let the user create documents to be published.
>
>So far I've not managed to in any way to interact with this HTML-editor
>using Watir. Neither manipulating text in the textarea nor accessing the
>toolbar buttons works. When trying to input text in the textarea I
>always get an error like this:
>
>    irb(main):026:0> ie.text_field(:id, /elm1/).set("Test")
>    WIN32OLERuntimeError: focus
>        OLE error code:800A083E in htmlfile
>          Can't move focus to the control because it is invisible, not
>          enabled, or of a type that does not accept the focus.
>        HRESULT error code:0x80020009
>          Exception occurred.
>            from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3399:in
>            method_missing'
>            from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3399:in `set'
>            from (irb):26
>            from  :0
>
>I realize I might be trying to access the wrong object here, but I've
>tried others with no luck. I've also tried using name instead of id.
>
>If anyone can help me sorting out this problem that would be greatly
>appreciated.
>
>
>[1] TinyMCE is a platform independent web based _javascript_ HTML WYSIWYG
>      editor control released as Open Source under LGPL by Moxiecode
>      Systems AB. It has the ability to convert HTML TEXTAREA fields or
>      other HTML elements to editor instances.
>      http://tinymce.moxiecode.com/example_full.php?example=true
>
>Kind regards,
>--
>Thomas Ohrbom
 

This e-mail message is being sent solely for use by the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by phone or reply by e-mail, delete the original message and destroy all copies. Thank you.
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to