module PageObject module Platforms module Selenium def self.create_page_object(browser) require 'page-object/platforms/selenium/page_object' return Object::PageObject::Platforms::Selenium::PageObject.new(browser) end def self.is_for?(browser) browser.is_a? Object::Selenium::WebDriver::Driver end end end end PageObject::Platforms.register(:selenium, PageObject::Platforms::Selenium)