def get_page_class
      parser = @count_elements_parser ||= Nokogiri::XML::SAX::Parser.new(CountElements.new(@core.device))

      parser.document.reset
      parser.parse get_source

      parser.document.formatted_result
    end
def get_page_class
      parser = @count_elements_parser ||= Nokogiri::XML::SAX::Parser.new(CountElements.new(@core.device))

      parser.document.reset
      parser.parse get_source

      parser.document.formatted_result
    end
class CountElements
 Returns a string of class counts of visible elements.
 @return [String]

 @example

   get_page_class #=> "24x XCUIElementTypeStaticText\n12x XCUIElementTypeCell\n8x XCUIElementTypeOther\n
                  #    2x XCUIElementTypeWindow\n1x XCUIElementTypeStatusBar\n1x XCUIElementTypeTable\n1
                  #    x XCUIElementTypeNavigationBar\n1x XCUIElementTypeApplication"