Sha256: 468e79229906b2034889387dc78217ec4d6bb2b6655b7876951ea2bb70ac2d43
Contents?: true
Size: 1.14 KB
Versions: 4
Compression:
Stored size: 1.14 KB
Contents
// // // Created by XCFit Framework // Copyright © 2016 XCFit Framework. All rights reserved. // /* This is sample code created by XCFit Framework and can be edited/Removed as per your project need. You can also re-arrange Xcode Groups and directories as per your need. This assumes that your apps is made up of multiple screens. All the common varibales, functions, related to screens can be put here. This class will be perent class of your individual screen. */ import XCTest import Foundation class BaseScreen: XCTestCase { func waitAndTap(element: XCUIElement) { let exists = NSPredicate(format: "exists == true") self.expectation(for: exists, evaluatedWith: element, handler: nil) self.waitForExpectations(timeout: 10, handler: nil) element.tap() } func waitForExist(element: XCUIElement) { let exists = NSPredicate(format: "exists == true") self.expectation(for: exists, evaluatedWith: element, handler: nil) self.waitForExpectations(timeout: 10, handler: nil) XCTAssert(element.exists) } }
Version data entries
4 entries across 4 versions & 1 rubygems