Re: [wtr-general] how to check TextArea is enabled or disabled

2013-06-26 Thread Jarmo Pertman
I'm not sure that there even should be #enabled? method for input elements - there should be `disabled?`. Although maybe creating an `enabled?` is not too bad idea either. Jarmo On Wednesday, June 19, 2013 3:07:26 PM UTC+3, Željko Filipin wrote: On Wed, Jun 19, 2013 at 1:53 PM, Sohail Mirza

Re: [wtr-general] how to check TextArea is enabled or disabled

2013-06-21 Thread Super Kevy
Alternate is .attribute_value( attributeName ) as browser.text_field(:index, 1).attribute_value(disabled).to_s On Wednesday, June 19, 2013 7:07:26 AM UTC-5, Željko Filipin wrote: On Wed, Jun 19, 2013 at 1:53 PM, Sohail Mirza mrz...@gmail.comjavascript: wrote: NoMethodError: undefined

[wtr-general] how to check TextArea is enabled or disabled

2013-06-19 Thread Sohail Mirza
Hi, Is there any method available using which i can check whether the textarea is enabled or disabled. i checked the following http://rdoc.info/gems/watir-webdriver/Watir/TextArea but could not find enabled? method. Please suggest -- -- Before posting, please read http://watir.com/support.

Re: [wtr-general] how to check TextArea is enabled or disabled

2013-06-19 Thread Željko Filipin
On Wed, Jun 19, 2013 at 1:20 PM, Sohail Mirza mrz...@gmail.com wrote: Is there any method available using which i can check whether the textarea is enabled or disabled. Watir::Input has #enabled? method: http://rdoc.info/gems/watir-webdriver/Watir/Input#enabled%3F-instance_method You should

Re: [wtr-general] how to check TextArea is enabled or disabled

2013-06-19 Thread Sohail Mirza
okay i try it. but question...i am asking for text_area but you mentioned for text_field. if it will work then how because both are difference objects. On Wed, Jun 19, 2013 at 3:31 PM, Željko Filipin zeljko.fili...@gmail.comwrote: On Wed, Jun 19, 2013 at 1:20 PM, Sohail Mirza

Re: [wtr-general] how to check TextArea is enabled or disabled

2013-06-19 Thread Željko Filipin
On Wed, Jun 19, 2013 at 1:41 PM, Sohail Mirza mrz...@gmail.com wrote: i am asking for text_area but you mentioned for text_field. if it will work then how because both are difference objects. That was my mistake, I did not notice you were talking about text area. :) It _should_ work the same

Re: [wtr-general] how to check TextArea is enabled or disabled

2013-06-19 Thread Sohail Mirza
unfortunately it is not working *NoMethodError: undefined method `enabled?' for #Watir::TextArea:0x2fb0350 * C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.6.4/lib/watir-webdrive r/elements/element.rb:553:in `method_missing' On Wed, Jun 19, 2013 at 3:43 PM, Željko Filipin

Re: [wtr-general] how to check TextArea is enabled or disabled

2013-06-19 Thread Željko Filipin
On Wed, Jun 19, 2013 at 1:53 PM, Sohail Mirza mrz...@gmail.com wrote: NoMethodError: undefined method `enabled?' for #Watir::TextArea:0x2fb0350 That sounds like a bug to me. You should report it here: https://github.com/watir/watir-webdriver/issues Željko -- -- Before posting, please read