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?
>       puts"Pass"
>       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
-~----------~----~----~----~------~----~------~--~---

Reply via email to