This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func waitForElementToAppear(_ xcelement: XCUIElement, _ timeout: Double) { | |
let expectation = XCTKVOExpectation(keyPath: "exists", object: xcelement, expectedValue: true) | |
XCTWaiter().wait(for: [expectation], timeout: timeout) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Given /^I have (\d+) cucumbers in my belly$/ do |cukes| | |
# Some Ruby code here | |
end |