Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. func testFastlane() {
  2. let app = XCUIApplication()
  3.  
  4. let scrollViewsQuery = app.scrollViews
  5. let element = scrollViewsQuery.children(matching: .other).element.children(matching: .other).element(boundBy: 1)
  6. let currencyPageView = element.children(matching: .other).element(boundBy: 2)
  7.  
  8. let coordinate = currencyPageView.coordinate(withNormalizedOffset:CGVector(dx: 64, dy: 10))
  9. print("AAAA")
  10. coordinate.press(forDuration: 1)
  11. print("BBBB")
  12.  
  13. snapshot("01_MainScreen")
  14. print("CCCC")
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement