Slide 24
Slide 24 text
print(XCUIApplication().windows["Window"].debugDescription)
Πϯυͷ্ʹɺͲΜͳ6*͕͍ͬͯΔͷ͔ʁ
Attributes: Window (Main), {{340.0, 781.0}, {480.0, 292.0}}, identifier: '_NS:10', title: 'Window', Disabled
Element subtree:
→Window (Main), 0x600003b00b60, {{340.0, 781.0}, {480.0, 292.0}}, identifier: '_NS:10', title: 'Window',
Disabled
Button, 0x600003b00c40, {{493.0, 882.0}, {81.0, 32.0}}, identifier: 'button1', title: 'Button', Keyboard
Focused
Button, 0x600003b00d20, {{347.0, 784.0}, {14.0, 16.0}}, identifier: '_XCUI:CloseWindow'
Button, 0x600003b00e00, {{387.0, 784.0}, {14.0, 16.0}}, identifier: '_XCUI:FullScreenWindow'
Button, 0x600003b00ee0, {{367.0, 784.0}, {14.0, 16.0}}, identifier: '_XCUI:MinimizeWindow'
StaticText, 0x600003b00fc0, {{553.0, 784.0}, {53.0, 16.0}}, value: Window
Path to element:
→Application, 0x600003b00a80, pid: 89463, title: 'sampleapp', Disabled
↳Window (Main), 0x600003b00b60, {{340.0, 781.0}, {480.0, 292.0}}, identifier: '_NS:10', title: 'Window',
Disabled
Query chain:
→Find: Target Application 'jp.co.innoface.sampleapp'
Output: {
Application, pid: 89463, title: ‘sampleapp', Disabled
}
↪Find: Descendants matching type Window
Output: {
Window (Main), {{340.0, 781.0}, {480.0, 292.0}}, identifier: '_NS:10', title: 'Window', Disabled
}
↪Find: Elements matching predicate '"Window" IN identifiers'
Output: {
Window (Main), {{340.0, 781.0}, {480.0, 292.0}}, identifier: '_NS:10', title: 'Window', Disabled
}