class SpecTest::WebObjects::Button
Public Class Methods
new(web_object, platform)
click to toggle source
# File lib/spectest/web_objects/button.rb, line 5 def initialize(web_object, platform) @web_object = web_object mixin_web_objects_for platform end
Protected Class Methods
locators_for_selenium()
click to toggle source
Calls superclass method
SpecTest::WebObjects::WebObject::locators_for_selenium
# File lib/spectest/web_objects/button.rb, line 16 def self.locators_for_selenium super + [:value] end
locators_for_watir()
click to toggle source
Calls superclass method
SpecTest::WebObjects::WebObject::locators_for_watir
# File lib/spectest/web_objects/button.rb, line 12 def self.locators_for_watir super + [:text, :value] end
Protected Instance Methods
mixin_web_objects_for(platform)
click to toggle source
Calls superclass method
SpecTest::WebObjects::WebObject#mixin_web_objects_for
# File lib/spectest/web_objects/button.rb, line 20 def mixin_web_objects_for(platform) super if platform[:platform] == :selenium_webdriver require "spectest/platform_selenium/web_objects/button" self.class.send :include, SpecTest::Platforms::SeleniumWebDriver::Button end end