class PageObject::Elements::Button
Public Class Methods
new(element, platform)
click to toggle source
# File lib/page-object/elements/button.rb, line 6 def initialize(element, platform) @element = element include_platform_for platform end
Protected Class Methods
selenium_finders()
click to toggle source
Calls superclass method
# File lib/page-object/elements/button.rb, line 17 def self.selenium_finders super + [:value, :src, :alt] end
watir_finders()
click to toggle source
Calls superclass method
# File lib/page-object/elements/button.rb, line 13 def self.watir_finders super + [:text, :value, :src, :alt, :css] end
Protected Instance Methods
include_platform_for(platform)
click to toggle source
Calls superclass method
# File lib/page-object/elements/button.rb, line 21 def include_platform_for platform super if platform[:platform] == :selenium_webdriver require 'page-object/platforms/selenium_webdriver/button' self.class.send :include, PageObject::Platforms::SeleniumWebDriver::Button end end