Skip to content

Instantly share code, notes, and snippets.

@macbaszii
Created October 13, 2015 14:53
Show Gist options
  • Select an option

  • Save macbaszii/bf965b460bca9215220a to your computer and use it in GitHub Desktop.

Select an option

Save macbaszii/bf965b460bca9215220a to your computer and use it in GitHub Desktop.
private func waitForElementToAppear(element: XCUIElement) {
let existsPredicate = NSPredicate(format: "exists == true")
expectationForPredicate(existsPredicate,
evaluatedWithObject: element, handler: nil)
waitForExpectationsWithTimeout(5, handler: nil)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment