The XCFit predefined Steps are grouped by
- Application Launcher Steps
- User Actions
- Waiter Actions
- Assertions
XCUIElement value needs to be replaced by locator from your Application.Some of the values of String also need to replaced.
givenILaunchedApplication()
whenITerminatedApplication()
givenILaunchedApplicationWithArguments(launchArguments: [[String]] = [])
whenITap(on element: XCUIElement)
whenIDoubleTapOn(XCUIElement)
whenIypeTextIntoTextField(textField: XCUIElement, text: String)
whenIActOnAlert(alertTitle: String, alertButton: String)
whenIAllowSystemAlert(alertDescription: String)
whenISlideASlider(by normalisedValue: CGFloat)
whenISelectAItemFromPicker(item: CGFloat)
whenIClickLinkFromWebView(linkText: String)
whenIPressElementForDuration(XCUIElement, duration: TimeInterval)
whenIPressOnElementAndDragToOtherElement(_ element: XCUIElement, destinationElement: XCUIElement, duration: TimeInterval)
whenIClickElementForDuration(_ element: XCUIElement, duration: TimeInterval)
whenIClickOnElementAndDragToOtherElement(_ element: XCUIElement, destinationElement: XCUIElement, duration: TimeInterval)
whenIExpectElementToAppear(XCUIElement)
whenIExpectElementTimeOut(XCUIElement)
whenIExpectElementIncorrectOrder(XCUIElement)
whenIExpectElementInvertedFulfillment(XCUIElement)
thenIShouldSee(XCUIElement)
thenElementShouldHavePlaceholderValue(XCUIElement, String)
thenElementShouldHaveTitle(XCUIElement, String)
thenElementShouldBeEnabled(XCUIElement)
thenElementShouldBeVisible(XCUIElement)
thenElementShouldBeHittable(XCUIElement)
thenElementShouldSelected(XCUIElement)
thenIShouldSeeAnAlert()