Skip to content

Instantly share code, notes, and snippets.

@dpgraham
Created November 2, 2016 18:10
Show Gist options
  • Save dpgraham/63a97e960dc3e16b68084428b877be9e to your computer and use it in GitHub Desktop.
Save dpgraham/63a97e960dc3e16b68084428b877be9e to your computer and use it in GitHub Desktop.
WebDriverAgent sample source data
{
"value": {
"tree": {
"isEnabled": "1",
"isVisible": "1",
"frame": "{{0, 0}, {375, 667}}",
"children": [
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{0, 0}, {375, 667}}",
"children": [
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{0, 0}, {375, 667}}",
"children": [
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{0, 0}, {375, 667}}",
"rect": {
"y": 0,
"x": 0,
"width": 375,
"height": 667
},
"value": null,
"label": null,
"type": "Other",
"name": null,
"rawIdentifier": null
}
],
"rect": {
"y": 0,
"x": 0,
"width": 375,
"height": 667
},
"value": null,
"label": null,
"type": "Other",
"name": null,
"rawIdentifier": null
},
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{0, 0}, {375, 667}}",
"rect": {
"y": 0,
"x": 0,
"width": 375,
"height": 667
},
"value": null,
"label": null,
"type": "Other",
"name": null,
"rawIdentifier": null
}
],
"rect": {
"y": 0,
"x": 0,
"width": 375,
"height": 667
},
"value": null,
"label": null,
"type": "Window",
"name": null,
"rawIdentifier": null
},
{
"isEnabled": "1",
"isVisible": "1",
"frame": "{{0, 0}, {375, 667}}",
"children": [
{
"isEnabled": "1",
"isVisible": "1",
"frame": "{{0, 0}, {375, 667}}",
"children": [
{
"isEnabled": "1",
"isVisible": "1",
"frame": "{{0, 0}, {375, 667}}",
"children": [
{
"isEnabled": "1",
"isVisible": "1",
"frame": "{{0, 0}, {375, 667}}",
"children": [
{
"isEnabled": "1",
"isVisible": "1",
"frame": "{{0, 0}, {375, 667}}",
"children": [
{
"isEnabled": "1",
"isVisible": "1",
"frame": "{{0, 0}, {375, 667}}",
"children": [
{
"isEnabled": "1",
"isVisible": "1",
"frame": "{{0, 20}, {375, 535}}",
"children": [
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{-750, 20}, {0, 0}}",
"rect": {
"y": 20,
"x": -750,
"width": 0,
"height": 0
},
"value": null,
"label": null,
"type": "ScrollView",
"name": null,
"rawIdentifier": null
},
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{-750, 0}, {375, 667}}",
"children": [
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{-750, 0}, {375, 667}}",
"children": [
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{-750, 0}, {375, 667}}",
"rect": {
"y": 0,
"x": -750,
"width": 375,
"height": 667
},
"value": null,
"label": null,
"type": "Other",
"name": null,
"rawIdentifier": null
}
],
"rect": {
"y": 0,
"x": -750,
"width": 375,
"height": 667
},
"value": null,
"label": null,
"type": "Other",
"name": null,
"rawIdentifier": null
}
],
"rect": {
"y": 0,
"x": -750,
"width": 375,
"height": 667
},
"value": null,
"label": null,
"type": "Other",
"name": null,
"rawIdentifier": null
},
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{-375, 20}, {375, 535}}",
"children": [
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{-350, 26}, {64, 86}}",
"rect": {
"y": 26,
"x": -350,
"width": 64,
"height": 86
},
"value": "Wednesday, November 02",
"label": "Calendar",
"type": "Icon",
"name": "Calendar",
"rawIdentifier": "Calendar"
},
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{-263, 26}, {64, 86}}",
"rect": {
"y": 26,
"x": -263,
"width": 64,
"height": 86
},
"value": null,
"label": "Photos",
"type": "Icon",
"name": "Photos",
"rawIdentifier": "Photos"
},
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{-176, 26}, {64, 86}}",
"rect": {
"y": 26,
"x": -176,
"width": 64,
"height": 86
},
"value": null,
"label": "Maps",
"type": "Icon",
"name": "Maps",
"rawIdentifier": "Maps"
},
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{-89, 26}, {64, 86}}",
"rect": {
"y": 26,
"x": -89,
"width": 64,
"height": 86
},
"value": null,
"label": "News",
"type": "Icon",
"name": "News",
"rawIdentifier": "News"
},
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{-350, 114}, {64, 86}}",
"rect": {
"y": 114,
"x": -350,
"width": 64,
"height": 86
},
"value": null,
"label": "Wallet",
"type": "Icon",
"name": "Wallet",
"rawIdentifier": "Wallet"
},
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{-265, 114}, {69, 86}}",
"rect": {
"y": 114,
"x": -265,
"width": 69,
"height": 86
},
"value": null,
"label": "Reminders",
"type": "Icon",
"name": "Reminders",
"rawIdentifier": "Reminders"
},
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{-176, 114}, {64, 86}}",
"rect": {
"y": 114,
"x": -176,
"width": 64,
"height": 86
},
"value": null,
"label": "Health",
"type": "Icon",
"name": "Health",
"rawIdentifier": "Health"
},
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{-89, 114}, {64, 86}}",
"rect": {
"y": 114,
"x": -89,
"width": 64,
"height": 86
},
"value": null,
"label": "Settings",
"type": "Icon",
"name": "Settings",
"rawIdentifier": "Settings"
}
],
"rect": {
"y": 20,
"x": -375,
"width": 375,
"height": 535
},
"value": null,
"label": null,
"type": "Other",
"name": null,
"rawIdentifier": null
},
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{0, 20}, {375, 535}}",
"children": [
{
"isEnabled": "1",
"isVisible": "1",
"frame": "{{25, 26}, {64, 86}}",
"rect": {
"y": 26,
"x": 25,
"width": 64,
"height": 86
},
"value": null,
"label": "Watch",
"type": "Icon",
"name": "Watch",
"rawIdentifier": "Watch"
},
{
"isEnabled": "1",
"isVisible": "1",
"frame": "{{112, 26}, {64, 86}}",
"children": [
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{0, 0}, {0, 0}}",
"rect": {
"y": 0,
"x": 0,
"width": 0,
"height": 0
},
"value": null,
"label": "Contacts",
"type": "Other",
"name": "Contacts",
"rawIdentifier": "Contacts"
}
],
"rect": {
"y": 26,
"x": 112,
"width": 64,
"height": 86
},
"value": "1 app",
"label": "Extras folder",
"type": "Icon",
"name": "Extras",
"rawIdentifier": "Extras"
},
{
"isEnabled": "1",
"isVisible": "1",
"frame": "{{192, 26}, {78, 86}}",
"rect": {
"y": 26,
"x": 192,
"width": 78,
"height": 86
},
"value": null,
"label": "iCloud Drive",
"type": "Icon",
"name": "iCloud Drive",
"rawIdentifier": "iCloud Drive"
},
{
"isEnabled": "1",
"isVisible": "1",
"frame": "{{286, 26}, {65, 86}}",
"rect": {
"y": 26,
"x": 286,
"width": 65,
"height": 86
},
"value": null,
"label": "UICatalog",
"type": "Icon",
"name": "UICatalog",
"rawIdentifier": "UICatalog"
},
{
"isEnabled": "1",
"isVisible": "1",
"frame": "{{18, 114}, {78, 86}}",
"rect": {
"y": 114,
"x": 18,
"width": 78,
"height": 86
},
"value": null,
"label": "WebDriverAgentRunner",
"type": "Icon",
"name": "WebDriverAgentRunner",
"rawIdentifier": "WebDriverAgentRunner"
}
],
"rect": {
"y": 20,
"x": 0,
"width": 375,
"height": 535
},
"value": null,
"label": null,
"type": "Other",
"name": null,
"rawIdentifier": null
}
],
"rect": {
"y": 20,
"x": 0,
"width": 375,
"height": 535
},
"value": null,
"label": null,
"type": "ScrollView",
"name": null,
"rawIdentifier": null
},
{
"isEnabled": "1",
"isVisible": "1",
"frame": "{{0, 545}, {375, 42}}",
"rect": {
"y": 545,
"x": 0,
"width": 375,
"height": 42
},
"value": "Page 3 of 3",
"label": null,
"type": "PageIndicator",
"name": null,
"rawIdentifier": null
},
{
"isEnabled": "1",
"isVisible": "1",
"frame": "{{0, 571}, {375, 96}}",
"children": [
{
"isEnabled": "1",
"isVisible": "1",
"frame": "{{0, 570}, {375, 3}}",
"children": [
{
"isEnabled": "1",
"isVisible": "1",
"frame": "{{0, 570}, {375, 3}}",
"rect": {
"y": 570,
"x": 0,
"width": 375,
"height": 3
},
"value": null,
"label": null,
"type": "Image",
"name": null,
"rawIdentifier": null
}
],
"rect": {
"y": 570,
"x": 0,
"width": 375,
"height": 3
},
"value": null,
"label": null,
"type": "Other",
"name": null,
"rawIdentifier": null
},
{
"isEnabled": "1",
"isVisible": "1",
"frame": "{{0, 571}, {375, 96}}",
"children": [
{
"isEnabled": "1",
"isVisible": "1",
"frame": "{{112, 583}, {64, 86}}",
"rect": {
"y": 583,
"x": 112,
"width": 64,
"height": 86
},
"value": null,
"label": "Safari",
"type": "Icon",
"name": "Safari",
"rawIdentifier": "Safari"
},
{
"isEnabled": "1",
"isVisible": "1",
"frame": "{{198, 583}, {66, 86}}",
"rect": {
"y": 583,
"x": 198,
"width": 66,
"height": 86
},
"value": null,
"label": "Messages",
"type": "Icon",
"name": "Messages",
"rawIdentifier": "Messages"
}
],
"rect": {
"y": 571,
"x": 0,
"width": 375,
"height": 96
},
"value": null,
"label": "Dock",
"type": "Other",
"name": "Dock",
"rawIdentifier": null
},
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{0, 571}, {375, 126}}",
"children": [
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{0, 571}, {375, 667}}",
"rect": {
"y": 571,
"x": 0,
"width": 375,
"height": 667
},
"value": null,
"label": null,
"type": "Other",
"name": null,
"rawIdentifier": null
}
],
"rect": {
"y": 571,
"x": 0,
"width": 375,
"height": 126
},
"value": null,
"label": null,
"type": "Other",
"name": null,
"rawIdentifier": null
}
],
"rect": {
"y": 571,
"x": 0,
"width": 375,
"height": 96
},
"value": null,
"label": null,
"type": "Other",
"name": null,
"rawIdentifier": null
}
],
"rect": {
"y": 0,
"x": 0,
"width": 375,
"height": 667
},
"value": null,
"label": null,
"type": "Other",
"name": null,
"rawIdentifier": null
}
],
"rect": {
"y": 0,
"x": 0,
"width": 375,
"height": 667
},
"value": null,
"label": null,
"type": "Other",
"name": null,
"rawIdentifier": null
}
],
"rect": {
"y": 0,
"x": 0,
"width": 375,
"height": 667
},
"value": null,
"label": null,
"type": "Other",
"name": null,
"rawIdentifier": null
}
],
"rect": {
"y": 0,
"x": 0,
"width": 375,
"height": 667
},
"value": null,
"label": null,
"type": "Other",
"name": null,
"rawIdentifier": null
}
],
"rect": {
"y": 0,
"x": 0,
"width": 375,
"height": 667
},
"value": null,
"label": null,
"type": "Other",
"name": null,
"rawIdentifier": null
}
],
"rect": {
"y": 0,
"x": 0,
"width": 375,
"height": 667
},
"value": null,
"label": null,
"type": "Window",
"name": null,
"rawIdentifier": null
},
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{0, 0}, {750, 1334}}",
"children": [
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{0, 0}, {750, 1334}}",
"children": [
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{0, 0}, {750, 1334}}",
"children": [
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{0, 0}, {750, 1334}}",
"children": [
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{0, 0}, {750, 1334}}",
"rect": {
"y": 0,
"x": 0,
"width": 750,
"height": 1334
},
"value": null,
"label": null,
"type": "Other",
"name": null,
"rawIdentifier": null
}
],
"rect": {
"y": 0,
"x": 0,
"width": 750,
"height": 1334
},
"value": null,
"label": null,
"type": "Other",
"name": null,
"rawIdentifier": null
}
],
"rect": {
"y": 0,
"x": 0,
"width": 750,
"height": 1334
},
"value": null,
"label": null,
"type": "Other",
"name": null,
"rawIdentifier": null
},
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{0, 0}, {750, 1334}}",
"children": [
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{0, 0}, {750, 1334}}",
"children": [
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{0, 0}, {750, 1334}}",
"rect": {
"y": 0,
"x": 0,
"width": 750,
"height": 1334
},
"value": null,
"label": null,
"type": "Other",
"name": null,
"rawIdentifier": null
}
],
"rect": {
"y": 0,
"x": 0,
"width": 750,
"height": 1334
},
"value": null,
"label": null,
"type": "Other",
"name": null,
"rawIdentifier": null
}
],
"rect": {
"y": 0,
"x": 0,
"width": 750,
"height": 1334
},
"value": null,
"label": null,
"type": "Other",
"name": null,
"rawIdentifier": null
},
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{0, 0}, {750, 1334}}",
"children": [
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{0, 0}, {750, 1334}}",
"rect": {
"y": 0,
"x": 0,
"width": 750,
"height": 1334
},
"value": null,
"label": null,
"type": "Other",
"name": null,
"rawIdentifier": null
}
],
"rect": {
"y": 0,
"x": 0,
"width": 750,
"height": 1334
},
"value": null,
"label": null,
"type": "Other",
"name": null,
"rawIdentifier": null
},
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{0, 0}, {750, 1334}}",
"children": [
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{0, 0}, {750, 1334}}",
"rect": {
"y": 0,
"x": 0,
"width": 750,
"height": 1334
},
"value": null,
"label": null,
"type": "Other",
"name": null,
"rawIdentifier": null
}
],
"rect": {
"y": 0,
"x": 0,
"width": 750,
"height": 1334
},
"value": null,
"label": null,
"type": "Other",
"name": null,
"rawIdentifier": null
},
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{0, 0}, {750, 1334}}",
"children": [
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{0, 0}, {750, 1334}}",
"children": [
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{0, 0}, {750, 1334}}",
"rect": {
"y": 0,
"x": 0,
"width": 750,
"height": 1334
},
"value": null,
"label": null,
"type": "Other",
"name": null,
"rawIdentifier": null
}
],
"rect": {
"y": 0,
"x": 0,
"width": 750,
"height": 1334
},
"value": null,
"label": null,
"type": "Other",
"name": null,
"rawIdentifier": null
}
],
"rect": {
"y": 0,
"x": 0,
"width": 750,
"height": 1334
},
"value": null,
"label": null,
"type": "Other",
"name": null,
"rawIdentifier": null
},
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{0, 0}, {750, 1334}}",
"children": [
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{0, 0}, {750, 1334}}",
"children": [
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{0, 0}, {750, 1334}}",
"rect": {
"y": 0,
"x": 0,
"width": 750,
"height": 1334
},
"value": null,
"label": null,
"type": "Other",
"name": null,
"rawIdentifier": null
}
],
"rect": {
"y": 0,
"x": 0,
"width": 750,
"height": 1334
},
"value": null,
"label": null,
"type": "Other",
"name": null,
"rawIdentifier": null
}
],
"rect": {
"y": 0,
"x": 0,
"width": 750,
"height": 1334
},
"value": null,
"label": null,
"type": "Other",
"name": null,
"rawIdentifier": null
}
],
"rect": {
"y": 0,
"x": 0,
"width": 750,
"height": 1334
},
"value": null,
"label": null,
"type": "Other",
"name": null,
"rawIdentifier": null
},
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{0, 0}, {750, 1334}}",
"rect": {
"y": 0,
"x": 0,
"width": 750,
"height": 1334
},
"value": null,
"label": null,
"type": "Other",
"name": null,
"rawIdentifier": null
}
],
"rect": {
"y": 0,
"x": 0,
"width": 750,
"height": 1334
},
"value": null,
"label": null,
"type": "Other",
"name": null,
"rawIdentifier": null
},
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{0, 0}, {375, 667}}",
"children": [
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{0, 0}, {375, 667}}",
"rect": {
"y": 0,
"x": 0,
"width": 375,
"height": 667
},
"value": null,
"label": null,
"type": "Other",
"name": null,
"rawIdentifier": null
}
],
"rect": {
"y": 0,
"x": 0,
"width": 375,
"height": 667
},
"value": null,
"label": null,
"type": "Window",
"name": null,
"rawIdentifier": null
},
{
"isEnabled": "1",
"isVisible": "1",
"frame": "{{0, 0}, {375, 667}}",
"children": [
{
"isEnabled": "1",
"isVisible": "1",
"frame": "{{0, 0}, {375, 20}}",
"children": [
{
"isEnabled": "1",
"isVisible": "0",
"frame": "{{0, 0}, {375, 20}}",
"rect": {
"y": 0,
"x": 0,
"width": 375,
"height": 20
},
"value": null,
"label": null,
"type": "Other",
"name": null,
"rawIdentifier": null
},
{
"isEnabled": "1",
"isVisible": "1",
"frame": "{{0, 0}, {375, 20}}",
"children": [
{
"isEnabled": "1",
"isVisible": "1",
"frame": "{{6, 0}, {39, 20}}",
"rect": {
"y": 0,
"x": 6,
"width": 39,
"height": 20
},
"value": null,
"label": null,
"type": "Other",
"name": null,
"rawIdentifier": null
},
{
"isEnabled": "1",
"isVisible": "1",
"frame": "{{50, 0}, {13, 20}}",
"rect": {
"y": 0,
"x": 50,
"width": 13,
"height": 20
},
"value": "SSID",
"label": "3 of 3 Wi-Fi bars",
"type": "Other",
"name": "3 of 3 Wi-Fi bars",
"rawIdentifier": null
},
{
"isEnabled": "1",
"isVisible": "1",
"frame": "{{162, 0}, {55, 20}}",
"rect": {
"y": 0,
"x": 162,
"width": 55,
"height": 20
},
"value": null,
"label": "11:09 AM",
"type": "Other",
"name": "11:09 AM",
"rawIdentifier": null
},
{
"isEnabled": "1",
"isVisible": "1",
"frame": "{{345, 0}, {25, 20}}",
"rect": {
"y": 0,
"x": 345,
"width": 25,
"height": 20
},
"value": null,
"label": "-100% battery power",
"type": "Other",
"name": "-100% battery power",
"rawIdentifier": null
}
],
"rect": {
"y": 0,
"x": 0,
"width": 375,
"height": 20
},
"value": null,
"label": null,
"type": "Other",
"name": null,
"rawIdentifier": null
}
],
"rect": {
"y": 0,
"x": 0,
"width": 375,
"height": 20
},
"value": null,
"label": null,
"type": "StatusBar",
"name": null,
"rawIdentifier": null
}
],
"rect": {
"y": 0,
"x": 0,
"width": 375,
"height": 667
},
"value": null,
"label": null,
"type": "Window",
"name": null,
"rawIdentifier": null
}
],
"rect": {
"y": 0,
"x": 0,
"width": 375,
"height": 667
},
"value": null,
"label": " ",
"type": "Application",
"name": " ",
"rawIdentifier": null
}
},
"sessionId": "C1663B27-CE8D-498D-B6C2-8E22F8572038",
"status": 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment