Method: Appium::Ios::UITestElementsPrinter#start_element

Defined in:
lib/appium_lib/ios/common/helper.rb

#start_element(type, attrs = []) ⇒ Object



21
22
23
24
25
26
27
28
29
# 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