Sha256: 87ed856abf605a1c66c4e3f5e91ff724b7c09e5d2cf5066fc73da681fbdfac80
Contents?: true
Size: 652 Bytes
Versions: 5
Compression:
Stored size: 652 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