Sha256: 481e86d7ee8d6f6d3eddd41c648d610d442bf766231a6519200fc921951773ec

Contents?: true

Size: 638 Bytes

Versions: 5

Compression:

Stored size: 638 Bytes

Contents

require 'spec_helper'
require 'page-object/elements'

describe PageObject::Elements::Form do
  describe "interface" do
    let(:form_element) { double('form_element') }

    context "for watir" do
      it "should submit a form" do
        form = PageObject::Elements::Form.new(form_element, :platform => :watir)
        form_element.should_receive(:submit)
        form.submit
      end
    end

    context "for selenium" do
      it "should submit a form" do
        form = PageObject::Elements::Form.new(form_element, :platform => :selenium)
        form_element.should_receive(:submit)
        form.submit
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
page-object-0.2.5 spec/page-object/elements/form_spec.rb
page-object-0.2.4 spec/page-object/elements/form_spec.rb
page-object-0.2.3 spec/page-object/elements/form_spec.rb
page-object-0.2.2 spec/page-object/elements/form_spec.rb
page-object-0.2.1 spec/page-object/elements/form_spec.rb