Skeleton

Page Objects:

def my_target_demo
  return :accessibility_id, "myTarget Demo"
end

def other1
  return :predicate, "label like 'myTarget Demo'"
end

def static_text2
  return :predicate, "label like '320x50 and 300x250 banners'"
end

def static_text3
  return :predicate, "label like 'Fullscreen banners'"
end

def static_text4
  return :predicate, "label like 'Banners'"
end

def static_text5
  return :predicate, "label like 'Interstitial Ads'"
end

def static_text6
  return :predicate, "label like 'Advertisement inside app'"
end

def static_text7
  return :predicate, "label like 'Instream video ads'"
end

def static_text8
  return :predicate, "label like 'Native Ads'"
end

def static_text9
  return :predicate, "label like 'Instream Ads'"
end

def static_text10
  return :predicate, "label like '55'"
end

def static_text11
  return :predicate, "label like 'Banner 320x50'"
end

def static_text12
  return :predicate, "label like '556'"
end

def static_text13
  return :predicate, "label like 'Banner 320x50'"
end

def button14
  return :predicate, "label like '×'"
end

def button15
  return :predicate, "label like '×'"
end

def static_text16
  return :predicate, "label like 'Ad unit'"
end

def static_text17
  return :predicate, "label like 'Insert your slotId and ad type'"
end


Elements Tree:


    t =     1.46s Snapshot accessibility hierarchy for app with pid 75035
    t =     1.48s Snapshot accessibility hierarchy for app with pid 75035
Attributes: Application, 0x60000019cb10, pid: 75035, {{0.0, 0.0}, {414.0, 736.0}}, label: 'myTargetDemo'
Element subtree:
 →Application, 0x60000019cb10, pid: 75035, {{0.0, 0.0}, {414.0, 736.0}}, label: 'myTargetDemo'
    Window, 0x60000019bc70, Main Window, {{0.0, 0.0}, {414.0, 736.0}}
      Other, 0x600000185480, traits: 8589934592, {{0.0, 0.0}, {414.0, 736.0}}
        NavigationBar, 0x60000019c700, traits: 35192962023424, {{0.0, 20.0}, {414.0, 44.0}}, identifier: 'myTarget Demo'
          Other, 0x60000019cff0, traits: 8590000128, {{144.3, 31.7}, {125.7, 20.3}}, label: 'myTarget Demo'
        Other, 0x60000019cd80, traits: 8589934592, {{0.0, 0.0}, {414.0, 736.0}}
          Other, 0x60000019d0c0, traits: 8589934592, {{0.0, 0.0}, {414.0, 736.0}}
            Other, 0x60000019d190, traits: 8589934592, {{0.0, 64.0}, {414.0, 672.0}}
              Table, 0x60000019d260, traits: 35192962023424, {{0.0, 64.0}, {414.0, 672.0}}
                Other, 0x60000019d330, traits: 8589934592, {{0.0, 64.0}, {414.0, 0.0}}
                Cell, 0x60000019c080, traits: 8589934592, {{0.0, 64.0}, {414.0, 280.0}}
                  StaticText, 0x60000019d400, traits: 8589934656, {{16.0, 297.0}, {108.3, 32.3}}, label: '320x50 and 300x250 banners'
                  StaticText, 0x60000019c220, traits: 8589934656, {{218.0, 297.0}, {119.3, 16.3}}, label: 'Fullscreen banners'
                  StaticText, 0x60000019c150, traits: 8589934656, {{16.0, 270.0}, {72.3, 21.0}}, label: 'Banners'
                  StaticText, 0x60000019d4d0, traits: 8589934656, {{218.0, 270.0}, {124.7, 21.0}}, label: 'Interstitial Ads'
                Cell, 0x60000019d5a0, traits: 8589934592, {{0.0, 344.0}, {414.0, 280.0}}
                  StaticText, 0x60000019d670, traits: 8589934656, {{16.0, 577.0}, {134.0, 32.3}}, label: 'Advertisement inside app's content'
                  StaticText, 0x60000019d740, traits: 8589934656, {{218.0, 577.0}, {118.3, 16.3}}, label: 'Instream video ads'
                  StaticText, 0x60000019d810, traits: 8589934656, {{16.0, 550.0}, {92.7, 21.0}}, label: 'Native Ads'
                  StaticText, 0x60000019d8e0, traits: 8589934656, {{218.0, 550.0}, {113.7, 21.0}}, label: 'Instream Ads'
                Cell, 0x60000019d9b0, traits: 8589934592, {{0.0, 624.0}, {414.0, 280.0}}
                  StaticText, 0x60000019da80, traits: 8589934656, {{10.0, 634.0}, {192.0, 190.0}}, label: '55'
                  StaticText, 0x60000019db50, traits: 8589934656, {{16.0, 830.0}, {127.3, 21.0}}, label: 'Banner 320x50'
                  StaticText, 0x60000019dc20, traits: 8589934656, {{212.0, 634.0}, {192.0, 190.0}}, label: '556'
                  StaticText, 0x60000019dcf0, traits: 8589934656, {{218.0, 830.0}, {127.3, 21.0}}, label: 'Banner 320x50'
                  Button, 0x60000019ddc0, traits: 8589934593, {{162.0, 634.0}, {40.0, 40.0}}, label: '×'
                  Button, 0x60000019de90, traits: 8589934593, {{364.0, 634.0}, {40.0, 40.0}}, label: '×'
                Cell, 0x60000019df60, traits: 8589934592, {{0.0, 904.0}, {414.0, 280.0}}
                  StaticText, 0x60000019e030, traits: 8589934656, {{0.0, 64.0}, {62.0, 21.0}}, label: 'Ad unit'
                  StaticText, 0x60000019e100, traits: 8589934656, {{0.0, 64.0}, {134.7, 32.3}}, label: 'Insert your slotId and ad type'
                Other, 0x60000019e1d0, traits: 8589934592, {{0.0, 1184.0}, {414.0, 0.0}}
    Window, 0x60000019e2a0, {{0.0, 0.0}, {414.0, 736.0}}
      Other, 0x60000019e370, traits: 8589934592, {{0.0, 0.0}, {414.0, 736.0}}
        Other, 0x60000019e440, traits: 8589934592, {{0.0, 736.0}, {414.0, 226.0}}
    Window, 0x60000019e510, {{0.0, 0.0}, {414.0, 736.0}}
      StatusBar, 0x60000019e5e0, {{0.0, 0.0}, {414.0, 20.0}}
        Other, 0x60000019e6b0, {{0.0, 0.0}, {414.0, 20.0}}
        Other, 0x60000019e780, {{0.0, 0.0}, {414.0, 20.0}}
          Other, 0x60000019e850, traits: 8388608, {{6.0, 0.0}, {39.0, 20.0}}
          Other, 0x60000019e920, traits: 8388608, {{50.0, 0.0}, {14.0, 20.0}}, label: '3 of 3 Wi-Fi bars', value: SSID
          Other, 0x60000019e9f0, traits: 8389120, {{182.0, 0.0}, {54.0, 20.0}}, label: '10:21 AM'
          Other, 0x60000019eac0, traits: 8388608, {{374.0, 0.0}, {35.0, 20.0}}, label: '-100% battery power'
Path to element:
 →Application, 0x60000019cb10, pid: 75035, {{0.0, 0.0}, {414.0, 736.0}}, label: 'myTargetDemo'
Query chain:
 →Find: Application "ru.forqa.xctest" 0x6000000ab3a0
  Output: {
    Application, 0x60000019cb10, pid: 75035, {{0.0, 0.0}, {414.0, 736.0}}, label: 'myTargetDemo'
  }