OK i have a weird one I have a check-box that is visible on the page and is click-able. But when i view source it says:
<input disabled="disabled" type="checkbox" class="billingCheck" />
my code to is follows:
browser.checkbox(:class => 'billingCheck').set
I get the following error:
C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-2.0.4/lib/watir/element.rb:84:in `asse rt_enabled': object {:class=>"billingCheck"} and is disabled (Watir::Exception: :ObjectDisabledException)
I tried to use the following but it passed right over the code.
if
browser.checkbox(:class => 'billingCheck').visible?
browser.checkbox(:class => 'billingCheck').set
end
Any ideas? Thanks in advance.
browser.checkboxes(:class => 'billingCheck').size
– Željko Filipin