class Appium::Ios::UITestElementsPrinter
@private
Attributes
Public Instance Methods
Source
# File lib/appium_lib/ios/common/helper.rb, line 32 def _print_attr(type, name, label, value, hint, visible) # rubocop:disable Metrics/ParameterLists puts type.to_s if name || label || value || hint || visible if name == label && name == value puts " name, label, value: #{name}" if name elsif name == label puts " name, label: #{name}" if name puts " value: #{value}" if value elsif name == value puts " name, value: #{name}" if name puts " label: #{label}" if label else puts " name: #{name}" if name puts " label: #{label}" if label puts " value: #{value}" if value end puts " hint: #{hint}" if hint puts " visible: #{visible}" if visible end
@private
Source
# File lib/appium_lib/ios/common/helper.rb, line 21 def start_element(type, attrs = []) return if filter && !filter.eql?(type) page = attrs.each_with_object({}) do |attr, hash| hash[attr[0]] = attr[1] if %w(name label value hint visible).include?(attr[0]) hash end _print_attr(type, page['name'], page['label'], page['value'], page['hint'], page['visible']) end