How to Input Content to FCK textarea

17 views
Skip to first unread message

LichengCai

unread,
Apr 9, 2009, 10:46:23 PM4/9/09
to Watir General
I am a new user of watir,When I write testcases For a CMS system.
I have read http://groups.google.com/group/watir-general/browse_thread/thread/5852900e02fea4fa,
So I wrote code like this:

ie.frame("ifrmContent").frame(:index, 3).frame(:id,
"WebEditorTextarea___Frame").frame(:id,
"xEditingAreaFrame").document.body.focus;
puts "FCKEditor Passes"
ie.send_keys("Life is Good")

but it is reponse is:
FCKEditor Passes
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:113:in
`initialize':
unknown OLE server: `AutoItX3.Control' (WIN32OLERuntimeError)
HRESULT error code:0x800401f3
无效的类别字符串 from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/
watir/ie.rb:113:in `new'
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
ie.rb:113:in `autoit'
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-
class.rb:427:in `autoit'
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-
class.rb:435:in `send_keys'
from login_test.rb:27

Why? I don`t understand. Someone said the watir can`t deal with iframe
very well, It`s true?

KiranD

unread,
Apr 10, 2009, 3:07:18 AM4/10/09
to watir-...@googlegroups.com
Hi,

Resister dll "AutoItX3.dll"
Dll location: "C:\ruby\lib\ruby\gems\1.8\gems\watir-1.6.2\lib\watir"
It will be work fine

Regards,
________________________________

Kiran Darekar
NOTICE: This email message, including any attachments, may contain
information that is confidential and/or proprietary. If you are not an
intended recipient, please be advised that any review, use, reproduction or
distribution of this message is prohibited. If you have received this
message in error, please completely destroy all electronic and hard copies,
and contact the sender at or kir...@sikkasoft.com.
________________________________

Cai Licheng

unread,
Apr 10, 2009, 3:41:54 AM4/10/09
to watir-...@googlegroups.com
Sorry! I don`t good at Ruby, How to resister dll "AutoltX3.dll"? Can you give me more detail , thanks!

2009/4/10 KiranD <kir...@sikkasoft.com>

Željko Filipin

unread,
Apr 10, 2009, 4:23:03 AM4/10/09
to watir-...@googlegroups.com
2009/4/10 Cai Licheng <caili...@gmail.com>

> How to resister dll "AutoltX3.dll"?

- open command prompt at C:\ruby\lib\ruby\gems\1.8\gems\watir-1.6.2\lib\watir (if you have watir 1.6.2 and ruby in c:\ruby)
- type: regsvr32 AutoItX3.dll

Željko

Cai Licheng

unread,
Apr 10, 2009, 4:51:27 AM4/10/09
to watir-...@googlegroups.com
Good! It can input now! Thank you, Željko Filipin.

2009/4/10 Željko Filipin <zeljko....@wa-research.ch>

KiranD

unread,
Apr 10, 2009, 4:54:21 AM4/10/09
to watir-...@googlegroups.com

Type below command in RUN and click on OK.

Windows Start>>Run

 

regsvr32 "C:\ruby\lib\ruby\gems\1.8\gems\watir-1.6.2\lib\watir\AutoItX3.dll"

 

Check yours dll path and update in command text.

It will show message box,

“DllresigterServer in path succeeded.”

 

Best Regards,

Kiran Darekar

Cai Licheng

unread,
Apr 10, 2009, 4:57:11 AM4/10/09
to watir-...@googlegroups.com
Thanks KrianD, I have regisetered it.It can work now.

2009/4/10 KiranD <kir...@sikkasoft.com>

Raveendran P

unread,
May 6, 2009, 4:50:05 AM5/6/09
to watir-...@googlegroups.com
Hi All,

It is working fine.

But Already the editor contains text like

"TESTING"

I entered now

"Automation"

but I want to remove the existing word.

Any help ?


2009/4/10 Cai Licheng <caili...@gmail.com>



--
Regards,
P.Raveendran
http://raveendran.wordpress.com


Reply all
Reply to author
Forward
0 new messages