Skeleton

PageObjects:

By myTargetDemo() {
  return MobileBy.AccessibilityId("myTarget Demo");
}

By other1() {
  return MobileBy.iOSNsPredicateString("label like 'myTarget Demo'");
}

By staticText2() {
  return MobileBy.iOSNsPredicateString("label like '320x50 and 300x250 banners'");
}

By staticText3() {
  return MobileBy.iOSNsPredicateString("label like 'Fullscreen banners'");
}

By staticText4() {
  return MobileBy.iOSNsPredicateString("label like 'Banners'");
}

By staticText5() {
  return MobileBy.iOSNsPredicateString("label like 'Interstitial Ads'");
}

By staticText6() {
  return MobileBy.iOSNsPredicateString("label like 'Advertisement inside app'");
}

By staticText7() {
  return MobileBy.iOSNsPredicateString("label like 'Instream video ads'");
}

By staticText8() {
  return MobileBy.iOSNsPredicateString("label like 'Native Ads'");
}

By staticText9() {
  return MobileBy.iOSNsPredicateString("label like 'Instream Ads'");
}

By staticText10() {
  return MobileBy.iOSNsPredicateString("label like 'Insert your slotId and ad type'");
}

By staticText11() {
  return MobileBy.iOSNsPredicateString("label like 'Ad unit'");
}


ElementsTree:


    t =     1.48s Snapshot accessibility hierarchy for app with pid 38785
    t =     1.49s Snapshot accessibility hierarchy for app with pid 38785
Attributes: Application, 0x6000003801a0, pid: 38785, {{0.0, 0.0}, {414.0, 736.0}}, label: 'myTargetDemo'
Element subtree:
 →Application, 0x6000003801a0, pid: 38785, {{0.0, 0.0}, {414.0, 736.0}}, label: 'myTargetDemo'
    Window, 0x60000019bfb0, Main Window, {{0.0, 0.0}, {414.0, 736.0}}
      Other, 0x60000019fbd0, traits: 8589934592, {{0.0, 0.0}, {414.0, 736.0}}
        NavigationBar, 0x60000019bee0, traits: 35192962023424, {{0.0, 20.0}, {414.0, 44.0}}, identifier: 'myTarget Demo'
          Other, 0x6000003809c0, traits: 8590000128, {{144.3, 31.7}, {125.7, 20.3}}, label: 'myTarget Demo'
        Other, 0x60000019ff10, traits: 8589934592, {{0.0, 0.0}, {414.0, 736.0}}
          Other, 0x60000019fe40, traits: 8589934592, {{0.0, 0.0}, {414.0, 736.0}}
            Other, 0x600000380a90, traits: 8589934592, {{0.0, 64.0}, {414.0, 672.0}}
              Table, 0x600000380b60, traits: 35192962023424, {{0.0, 64.0}, {414.0, 672.0}}
                Other, 0x600000380c30, traits: 8589934592, {{0.0, -104.0}, {414.0, 0.0}}
                Cell, 0x600000380d00, traits: 8589934592, {{0.0, -104.0}, {414.0, 280.0}}
                  StaticText, 0x600000380dd0, traits: 8589934656, {{16.0, 129.0}, {108.3, 32.3}}, label: '320x50 and 300x250 banners'
                  StaticText, 0x604000391440, traits: 8589934656, {{218.0, 129.0}, {119.3, 16.3}}, label: 'Fullscreen banners'
                  StaticText, 0x60400019c3c0, traits: 8589934656, {{16.0, 102.0}, {72.3, 21.0}}, label: 'Banners'
                  StaticText, 0x60400019c2f0, traits: 8589934656, {{218.0, 102.0}, {124.7, 21.0}}, label: 'Interstitial Ads'
                Cell, 0x60400019c220, traits: 8589934592, {{0.0, 176.0}, {414.0, 280.0}}
                  StaticText, 0x60400038ee10, traits: 8589934656, {{16.0, 409.0}, {134.0, 32.3}}, label: 'Advertisement inside app's content'
                  StaticText, 0x60400038eee0, traits: 8589934656, {{218.0, 409.0}, {118.3, 16.3}}, label: 'Instream video ads'
                  StaticText, 0x60400019c490, traits: 8589934656, {{16.0, 382.0}, {92.7, 21.0}}, label: 'Native Ads'
                  StaticText, 0x60400038ec70, traits: 8589934656, {{218.0, 382.0}, {113.7, 21.0}}, label: 'Instream Ads'
                Cell, 0x60400038e860, traits: 8589934592, {{0.0, 456.0}, {414.0, 280.0}}
                  StaticText, 0x60400038ed40, traits: 8589934656, {{16.0, 689.0}, {134.7, 32.3}}, label: 'Insert your slotId and ad type'
                  StaticText, 0x604000390f60, traits: 8589934656, {{16.0, 662.0}, {62.0, 21.0}}, label: 'Ad unit'
                Other, 0x604000390e90, traits: 8589934592, {{0.0, 736.0}, {414.0, 0.0}}
    Window, 0x604000390dc0, {{0.0, 0.0}, {414.0, 736.0}}
      Other, 0x604000390c20, traits: 8589934592, {{0.0, 0.0}, {414.0, 736.0}}
        Other, 0x604000390cf0, traits: 8589934592, {{0.0, 736.0}, {414.0, 226.0}}
    Window, 0x604000390b50, {{0.0, 0.0}, {414.0, 736.0}}
      StatusBar, 0x6040003909b0, {{0.0, 0.0}, {414.0, 20.0}}
        Other, 0x60400038f630, {{0.0, 0.0}, {414.0, 20.0}}
        Other, 0x6040003923b0, {{0.0, 0.0}, {414.0, 20.0}}
          Other, 0x6040003922e0, traits: 8388608, {{6.0, 0.0}, {39.0, 20.0}}
          Other, 0x604000392b00, traits: 8388608, {{50.0, 0.0}, {14.0, 20.0}}, label: '3 of 3 Wi-Fi bars', value: SSID
          Other, 0x604000392890, traits: 8389120, {{184.0, 0.0}, {50.0, 20.0}}, label: '5:58 PM'
          Other, 0x604000391d30, traits: 8388608, {{374.0, 0.0}, {35.0, 20.0}}, label: '-100% battery power'
Path to element:
 →Application, 0x6000003801a0, pid: 38785, {{0.0, 0.0}, {414.0, 736.0}}, label: 'myTargetDemo'
Query chain:
 →Find: Application "ru.mail.adman" 0x6000000ba820
  Output: {
    Application, 0x6000003801a0, pid: 38785, {{0.0, 0.0}, {414.0, 736.0}}, label: 'myTargetDemo'
  }