Hi,

While using watir to compose a mail(Yahoo mail), I came across a text area with style set to display:none:

<textarea name="Body" id="bodyfield" style="display:none"></textarea>

According to CSS tutorials at w3schools:

http://www.w3schools.com/css/pr_class_display.asp

The value none means that element will not be displayed. But the element is visible in the browser and when I try to enter text in to it following exception comes:
d:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3849:in `method_missing': focus
(WIN32OLERuntimeError)

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
d:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3849:in `set'

Now how to enter value in such a textarea?

Regards,
Angrez




_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to