Sha256: 8ab5278df1f61bf34c4bd7c47743e0a85326dd4e6ae020608a04ef2f7b4a279d
Contents?: true
Size: 1011 Bytes
Versions: 10
Compression:
Stored size: 1011 Bytes
Contents
module Fluent module WebElements class TableRow < WebElement include Enumerable def initialize(web_element, platform) @web_element = web_element include_platform_specifics_for platform end # @return [Fluent::WebElements::Cell] def each for index in 1..self.columns do yield self[index - 1] end end def initialize_cell(row_element, platform) ::Fluent::WebElements::Cell.new(row_element, platform) end def cell_xpath './/child::td|th' end def include_platform_specifics_for(platform) super if platform[:platform] == :watir_webdriver require 'fluent/platform_watir/platform_web_elements/table_row' self.class.send :include, Fluent::Platforms::WatirWebDriver::TableRow end end end ::Fluent::WebElements.class_for_tag[:tr] = ::Fluent::WebElements::TableRow end end
Version data entries
10 entries across 10 versions & 1 rubygems