Sha256: 934eb8ac8f2df396eefa584a927f38479d2569de722f6c9f7b5a7ccffea9cc03

Contents?: true

Size: 692 Bytes

Versions: 1

Compression:

Stored size: 692 Bytes

Contents

require_relative '../spec_helper'

describe 'WebElements::CheckBox' do
  let(:checkbox_object) { double('checkbox_object') }
  let(:checkbox_definition) { ::Fluent::WebElements::CheckBox.new(checkbox_object, :platform => :watir_webdriver) }

  it 'should be able to determine if the checkbox element is checked' do
    checkbox_object.should_receive(:set?).and_return(true)
    checkbox_definition.checked?
  end

  it 'should be able to check the checkbox' do
    checkbox_object.should_receive(:set)
    checkbox_definition.check
  end

  it 'should be able to uncheck the checkbox' do
    checkbox_object.should_receive(:clear)
    checkbox_definition.uncheck
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fluent-0.2.0 spec/web_elements/checkbox_spec.rb