Sha256: e47b558548820389de5150f47d6ea49de9a879b25a9874acb674db26addec8e4

Contents?: true

Size: 450 Bytes

Versions: 20

Compression:

Stored size: 450 Bytes

Contents

require 'watirspec_helper'

describe 'Attributes' do
  before :each do
    browser.goto(WatirSpec.url_for('forms_with_input_elements.html'))
  end

  it 'finds tab index' do
    expect(browser.checkbox(tabindex: '4').tabindex).to eq 4
  end

  it 'finds element with boolean' do
    expect(browser.checkbox(tabindex: false).id).to eq 'toggle_button_checkbox'
    expect(browser.checkbox(tabindex: true).id).to eq 'new_user_interests_books'
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
watir-7.1.0 spec/watirspec/attributes_spec.rb
watir-7.0.0 spec/watirspec/attributes_spec.rb
watir-7.0.0.beta5 spec/watirspec/attributes_spec.rb
watir-7.0.0.beta4 spec/watirspec/attributes_spec.rb
watir-7.0.0.beta3 spec/watirspec/attributes_spec.rb
watir-7.0.0.beta2 spec/watirspec/attributes_spec.rb
watir-7.0.0.beta1 spec/watirspec/attributes_spec.rb
watir-6.19.1 spec/watirspec/attributes_spec.rb
watir-6.19.0 spec/watirspec/attributes_spec.rb
watir-6.18.0 spec/watirspec/attributes_spec.rb
watir-6.17.0 spec/watirspec/attributes_spec.rb
watir-6.16.5 spec/watirspec/attributes_spec.rb
watir-6.16.4 spec/watirspec/attributes_spec.rb
watir-6.16.3 spec/watirspec/attributes_spec.rb
watir-6.16.2 spec/watirspec/attributes_spec.rb
watir-6.16.1 spec/watirspec/attributes_spec.rb
watir-6.16.0 spec/watirspec/attributes_spec.rb
watir-6.15.1 spec/watirspec/attributes_spec.rb
watir-6.15.0 spec/watirspec/attributes_spec.rb
watir-6.14.0 spec/watirspec/attributes_spec.rb