Class: Fluent::WebElements::CheckBox

Inherits:
WebElement show all
Defined in:
lib/fluent/web_elements/checkbox.rb

Instance Attribute Summary

Attributes inherited from WebElement

#web_element

Instance Method Summary collapse

Methods inherited from WebElement

#class_name, #click, #disabled?, #enabled?, #style, #text

Constructor Details

#initialize(web_element, platform) ⇒ CheckBox

Returns a new instance of CheckBox.



5
6
7
8
# File 'lib/fluent/web_elements/checkbox.rb', line 5

def initialize(web_element, platform)
  @web_element = web_element
  include_platform_specifics_for platform
end

Instance Method Details

#include_platform_specifics_for(platform) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/fluent/web_elements/checkbox.rb', line 10

def include_platform_specifics_for(platform)
  super
  if platform[:platform] == :watir_webdriver
    require 'fluent/platform_watir/platform_web_elements/checkbox'
    self.class.send :include, Fluent::Platforms::WatirWebDriver::CheckBox
  end
end