If style="display:none" is set in the html it means that it'll not be 
shown in the browser. 
then
a) either you have found a bug in IE or
b) You have one more text area with the same name & id which is visible.
so just scroll down and then check if there is another textarea with the 
same name and id which is visible.

Sathya Shankar

Angrez Singh wrote:

> 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
>  
>


-- 
Sathya Shankar M G
Software Testing Engineer
Qantom Software
http://www.qantom.com
Ph : 26799269 Xtn. 123
sip : [EMAIL PROTECTED] 


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

Reply via email to