Background:
I am experimenting with testing the ui level in iOS 9.0 with Xcode GM.
Question:
Is there a team in Xcode GM that allows you to see the "tree" of available elements and their relationships? Something like the 'page' command in Appium?
Ideally, I could run a command in the debugger that would provide me with a list of items available for selection / manipulation. You can currently use debugDescription on one XCUIElement, but this only gives you information for this element.
, ... :
po print(XCUIApplication().debugDescription)
, XCUITesting. :
func testTreeExample() { XCUIApplication().buttons["login"].tap() print(XCUIApplication().debugDescription) XCUIApplication().buttons["next"].tap() print(XCUIApplication().debugDescription) }
, -, , , - .
, , Xcodes Accessibility Inspector , . (N.B. "" IB, "".):
Xcode 7.2 Xcode- > Open Developer Tool- > Accessibility Inspector. (, .) iOS Xcode SIMULATOR. , , ..
, , , , , , . ( , UISegmentedControl , , , .)
shinobicontrols.com !
: Debug > View Debugging > Capture View Hierarchy debug. , . -- , . , .
Appium does this with Facebook WebdriverAgent . As far as I can tell, how they do it, in fact, starts from the root element of the application and collects information about each child element, and then repeats.
Source: https://habr.com/ru/post/1609050/More articles:linux sed script to make the first letter of each word in uppercase - linux"uninitialized constant OpenSSL :: PKey :: EC" from Ruby on CentOS 6.6 - ruby | fooobar.comАрхитектура приложения Android - основанная на событиях или многоуровневая - javaHow to calculate a series using Pandas - pythonШаблон автоконвертирования в шаблон - c++GCC Inline Assembly 'Nd' constraint - cPoor performance in a java exercise - javaremembersLastFocusedIndexPath not working on UICollectionView - tvosCan I save the WatchKit app in the background on an Apple Watch? - iosRemoving nodes in XML using XPath and PHP - xmlAll Articles