module Capybara::ActiveAdmin::Selectors::AttributesTable
Public Instance Methods
attributes_row_selector(label = nil)
click to toggle source
@return [String] selector.
# File lib/capybara/active_admin/selectors/attributes_table.rb, line 18 def attributes_row_selector(label = nil) return 'tr.row > td' if label.nil? label = label.to_s.gsub(' ', '_').downcase "tr.row.row-#{label} > td" end
attributes_table_selector(model: nil, id: nil)
click to toggle source
@return [String] selector.
# File lib/capybara/active_admin/selectors/attributes_table.rb, line 8 def attributes_table_selector(model: nil, id: nil) return 'div.attributes_table' if model.nil? model = Util.parse_model_name(model) selector = "div.attributes_table.#{model}" selector += "#attributes_table_#{model}_#{id}" if id selector end