Sha256: f85e71aa0c7d4bbcd9100bc1cca69a23e45879bbe289f9ab8afd95c2a014c14d

Contents?: true

Size: 450 Bytes

Versions: 19

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

19 entries across 19 versions & 1 rubygems

Version Path
watir-6.13.0 spec/watirspec/attributes_spec.rb
watir-6.12.0 spec/watirspec/attributes_spec.rb
watir-6.11.0 spec/watirspec/attributes_spec.rb
watir-6.11.0.beta2 spec/watirspec/attributes_spec.rb
watir-6.11.0.beta1 spec/watirspec/attributes_spec.rb
watir-6.10.3 spec/watirspec/attributes_spec.rb
watir-6.10.2 spec/watirspec/attributes_spec.rb
watir-6.10.0 spec/watirspec/attributes_spec.rb
watir-6.9.1 spec/watirspec/attributes_spec.rb
watir-6.9.0 spec/watirspec/attributes_spec.rb
watir-6.8.4 spec/watirspec/attributes_spec.rb
watir-6.8.3 spec/watirspec/attributes_spec.rb
watir-6.8.2 spec/watirspec/attributes_spec.rb
watir-6.8.1 spec/watirspec/attributes_spec.rb
watir-6.8.0 spec/watirspec/attributes_spec.rb
watir-6.7.3 spec/watirspec/attributes_spec.rb
watir-6.7.2 spec/watirspec/attributes_spec.rb
watir-6.7.1 spec/watirspec/attributes_spec.rb
watir-6.7.0 spec/watirspec/attributes_spec.rb