Sha256: 91b92a0f9558189018a3228a07cfc24064c58ca79402d84463bb31de419ed8c0

Contents?: true

Size: 931 Bytes

Versions: 57

Compression:

Stored size: 931 Bytes

Contents

require 'spec_helper'


describe PageObject::Platforms::SeleniumWebDriver do

  it "should be registered as an adapter" do
    PageObject::Platforms.get[:selenium_webdriver].should be PageObject::Platforms::SeleniumWebDriver

  end
  describe 'create page object' do
    let(:browser) { double('browser') }
    let(:subject) { PageObject::Platforms::SeleniumWebDriver.create_page_object(browser) }
    
    it "should create a SeleniumPageObject" do
      subject.should be_kind_of PageObject::Platforms::SeleniumWebDriver::PageObject
    end
  end
  
  describe "is for?" do
    it "should be true when the browser is a selenium driver" do
      browser = mock_selenium_browser()
      PageObject::Platforms::SeleniumWebDriver.is_for?(browser).should == true
    end
    
    it "should be false when the browser is anything else" do
      PageObject::Platforms::SeleniumWebDriver.is_for?("asdf").should == false
    end
  end
end

Version data entries

57 entries across 57 versions & 2 rubygems

Version Path
meeane-page-object-0.1.11 spec/page-object/platforms/selenium_webdriver_spec.rb
page-object-1.0.2 spec/page-object/platforms/selenium_webdriver_spec.rb
page-object-1.0.1 spec/page-object/platforms/selenium_webdriver_spec.rb
page-object-1.0 spec/page-object/platforms/selenium_webdriver_spec.rb
page-object-0.9.8 spec/page-object/platforms/selenium_webdriver_spec.rb
page-object-0.9.7 spec/page-object/platforms/selenium_webdriver_spec.rb
page-object-0.9.6 spec/page-object/platforms/selenium_webdriver_spec.rb
page-object-0.9.5 spec/page-object/platforms/selenium_webdriver_spec.rb
page-object-0.9.4 spec/page-object/platforms/selenium_webdriver_spec.rb
page-object-0.9.3 spec/page-object/platforms/selenium_webdriver_spec.rb
page-object-0.9.2 spec/page-object/platforms/selenium_webdriver_spec.rb
page-object-0.9.1 spec/page-object/platforms/selenium_webdriver_spec.rb
page-object-0.9.0 spec/page-object/platforms/selenium_webdriver_spec.rb
page-object-0.8.10 spec/page-object/platforms/selenium_webdriver_spec.rb
page-object-0.8.9 spec/page-object/platforms/selenium_webdriver_spec.rb
page-object-0.8.8 spec/page-object/platforms/selenium_webdriver_spec.rb
page-object-0.8.7 spec/page-object/platforms/selenium_webdriver_spec.rb
page-object-0.8.6.1 spec/page-object/platforms/selenium_webdriver_spec.rb
page-object-0.8.6 spec/page-object/platforms/selenium_webdriver_spec.rb
page-object-0.8.5 spec/page-object/platforms/selenium_webdriver_spec.rb