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