You can use following:

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


On Sat, Sep 25, 2010 at 4:24 PM, sss gu <[email protected]> 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 <[email protected]> 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: [email protected]
> To unsubscribe: 
> [email protected]<watir-general%[email protected]>
>

-- 
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: [email protected]
To unsubscribe: [email protected]

Reply via email to