Sha256: 774b9118e16acfb5fae60b2db3748b9fb2b659a5e1f7a4d01e4b1a652b7abf3d
Contents?: true
Size: 937 Bytes
Versions: 3
Compression:
Stored size: 937 Bytes
Contents
module PageObject module Platforms module SeleniumWebDriver module Table # # Return the PageObject::Elements::TableRow for the index provided. Index # is zero based. # # @return [PageObject::Elements::TableRow] # def [](idx) eles = table_rows Object::PageObject::Elements::TableRow.new(eles[idx], :platform => :selenium_webdriver) end # # Returns the number of rows in the table. # def rows table_rows.size end # # override PageObject::Platforms::SeleniumElement because exists? is not # available on a table element in Selenium. # def exists? raise "exists? not available on table element" end private def table_rows element.find_elements(:xpath, child_xpath) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems