Guest User

Untitled

a guest
Oct 22nd, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. func testOne() {
  2.  
  3. let app = XCUIApplication()
  4. app.tabBars.buttons["Collection View"].tap()
  5. app.children(matching: .window).element(boundBy: 0).children(matching: .other).element.children(matching: .other).element.children(matching: .other).element.children(matching: .other).element.children(matching: .other).element.children(matching: .other).element.children(matching: .other).element.children(matching: .collectionView).element.tap()
  6. snapshot("01")
  7.  
  8.  
  9. }
  10.  
  11. func testVC2() {
  12.  
  13. let app = XCUIApplication()
  14. app.tabBars.buttons["Home"].tap()
  15.  
  16. let scrollViewsQuery = app.scrollViews
  17. scrollViewsQuery.otherElements.containing(.staticText, identifier:"label").children(matching: .collectionView).element(boundBy: 1).tap()
  18. snapshot("vc2")
  19. }
  20.  
  21. func test123() {
  22. XCUIApplication().tabBars.buttons["tab1"].tap()
  23.  
  24. let app = XCUIApplication()
  25. let scrollViewsQuery = app.scrollViews
  26. scrollViewsQuery.otherElements.containing(.staticText, identifier:"cellitem").children(matching: .collectionView).element(boundBy: 1).tap()
  27.  
  28.  
  29. }
Add Comment
Please, Sign In to add comment