Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func testOne() {
- let app = XCUIApplication()
- app.tabBars.buttons["Collection View"].tap()
- 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()
- snapshot("01")
- }
- func testVC2() {
- let app = XCUIApplication()
- app.tabBars.buttons["Home"].tap()
- let scrollViewsQuery = app.scrollViews
- scrollViewsQuery.otherElements.containing(.staticText, identifier:"label").children(matching: .collectionView).element(boundBy: 1).tap()
- snapshot("vc2")
- }
- func test123() {
- XCUIApplication().tabBars.buttons["tab1"].tap()
- let app = XCUIApplication()
- let scrollViewsQuery = app.scrollViews
- scrollViewsQuery.otherElements.containing(.staticText, identifier:"cellitem").children(matching: .collectionView).element(boundBy: 1).tap()
- }
Add Comment
Please, Sign In to add comment