You can use following:

assert !(@browser.button(:id,"button_id").enabled?)


On Sat, Sep 25, 2010 at 4:24 PM, sss gu <gzlr...@gmail.com> wrote:

> I also meet the problem,the solution is use these code:
> ie.button(:id, "id name").enabled?
> &
> ie.button(:id, "id name").disabled?
>
>
> On Sep 25, 3:36 pm, Ekin Han <nbkhic...@gmail.com> wrote:
> > Hi all,
> >
> > I am using watir for IE and this version does have a disabled method, how
> > can i know an element is disabled?
>
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> You received this message because you are subscribed to
> http://groups.google.com/group/watir-general
> To post: watir-general@googlegroups.com
> To unsubscribe: 
> watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com>
>

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com

Reply via email to