Sha256: a1da67d12863ce92e973492ff9755eaa75fc826507209361a6666024e5cb0fde

Contents?: true

Size: 481 Bytes

Versions: 1

Compression:

Stored size: 481 Bytes

Contents

# frozen_string_literal: true

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

1 entries across 1 versions & 1 rubygems

Version Path
watir-7.2.0 spec/watirspec/attributes_spec.rb