[wtr-general] Re: How to check whether table cell is enabled or not?

2009-02-19 Thread Prince3105

Any idea or workaround? please share it

Thanks

On Feb 18, 12:15 pm, Prince3105 prince3...@gmail.com wrote:
 Thanks Wesley chen,

 I did a mistake , actually i applied obj.readonly? method that threw
 error

 the code is below
 ___

 if @ie.frame(:id,wfFrame).table(:id,idgEquipmentDetails).cell
 (:id,idgEquipmentDetails_ctl04_hndlng_amnt_nc_1).readonly?
       putsPass
       else
       puts Fail
     end

 

 above code gets below error
 
 NoMethodError: undefined method `readonly?' for #Watir::TableCell:
 0x3f6f9fc
 

 If i use obj.enabled? it prints Pass instead, obj.disabled? prints
 Fail , but the cell is showing value only. We cant click or
 anything.

 So give me a nice solution to check cell's property of readonly...

 Thanks

 Prince3105

 On Feb 18, 11:46 am, wesley chen cjq@gmail.com wrote:

  Is it OK object.disabled?

  Thanks.
  Wesley Chen.

  On Wed, Feb 18, 2009 at 2:22 PM, Prince3105 prince3...@gmail.com wrote:

   Hi Experts,

   I am a newbie to watir, in my application i have a scenario to check
   whether the table cells are enabled or not, after committing.

   I used obj.enabled? but it threw error. So please throw some light.

   Thanks,
   Prince3105
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: How to check whether table cell is enabled or not?

2009-02-19 Thread Angrez Singh
I am not sure if table cell can be read-only? you can define on-click event
on a cell .. if defined you can click it if not you can't click it (which
you still are but no action is being performed as there is no event
handler). Now how to check if event is present or not is another problem?

- Angrez

On Thu, Feb 19, 2009 at 4:37 PM, Prince3105 prince3...@gmail.com wrote:


 Any idea or workaround? please share it

 Thanks

 On Feb 18, 12:15 pm, Prince3105 prince3...@gmail.com wrote:
  Thanks Wesley chen,
 
  I did a mistake , actually i applied obj.readonly? method that threw
  error
 
  the code is below
 
 ___
 
  if @ie.frame(:id,wfFrame).table(:id,idgEquipmentDetails).cell
  (:id,idgEquipmentDetails_ctl04_hndlng_amnt_nc_1).readonly?
putsPass
else
puts Fail
  end
 
 
 
 
  above code gets below error
 
 
  NoMethodError: undefined method `readonly?' for #Watir::TableCell:
  0x3f6f9fc
 
 
 
  If i use obj.enabled? it prints Pass instead, obj.disabled? prints
  Fail , but the cell is showing value only. We cant click or
  anything.
 
  So give me a nice solution to check cell's property of readonly...
 
  Thanks
 
  Prince3105
 
  On Feb 18, 11:46 am, wesley chen cjq@gmail.com wrote:
 
   Is it OK object.disabled?
 
   Thanks.
   Wesley Chen.
 
   On Wed, Feb 18, 2009 at 2:22 PM, Prince3105 prince3...@gmail.com
 wrote:
 
Hi Experts,
 
I am a newbie to watir, in my application i have a scenario to check
whether the table cells are enabled or not, after committing.
 
I used obj.enabled? but it threw error. So please throw some light.
 
Thanks,
Prince3105
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: How to check whether table cell is enabled or not?

2009-02-17 Thread wesley chen
Is it OK object.disabled?

Thanks.
Wesley Chen.


On Wed, Feb 18, 2009 at 2:22 PM, Prince3105 prince3...@gmail.com wrote:


 Hi Experts,

 I am a newbie to watir, in my application i have a scenario to check
 whether the table cells are enabled or not, after committing.

 I used obj.enabled? but it threw error. So please throw some light.

 Thanks,
 Prince3105
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---