Sha256: 64636eb26ffa3823cb9c74ac7e9d107bffa990a9aef25a4678f4fe8e2ebf326c

Contents?: true

Size: 658 Bytes

Versions: 13

Compression:

Stored size: 658 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_webdriver)
        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_webdriver)
        form_element.should_receive(:submit)
        form.submit
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
page-object-0.5.4 spec/page-object/elements/form_spec.rb
page-object-0.5.3 spec/page-object/elements/form_spec.rb
page-object-0.5.2 spec/page-object/elements/form_spec.rb
page-object-0.5.1 spec/page-object/elements/form_spec.rb
page-object-0.5.0 spec/page-object/elements/form_spec.rb
page-object-0.4.4 spec/page-object/elements/form_spec.rb
page-object-0.4.3 spec/page-object/elements/form_spec.rb
page-object-0.4.2 spec/page-object/elements/form_spec.rb
page-object-0.4.1 spec/page-object/elements/form_spec.rb
page-object-0.4.0 spec/page-object/elements/form_spec.rb
page-object-0.3.2 spec/page-object/elements/form_spec.rb
page-object-0.3.1 spec/page-object/elements/form_spec.rb
page-object-0.3.0 spec/page-object/elements/form_spec.rb