Skip to content

Commit

Permalink
added fallback method to continue button interaction
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Espinola committed Jun 21, 2024
1 parent 1a74824 commit ac6f489
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Example/CreativeUITest/Pages/CreativePage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ struct CreativePage: Page {

@discardableResult
static func tapOnContinue() -> Self.Type {
continueButton.tapOnElement()
if continueButton.elementExists() {
continueButton.tapOnElement()
} else {
let goKeyboardButton = app.keyboards.buttons["go"]
goKeyboardButton.tapOnElement(timeout: 5)
}

return self
}

Expand Down

0 comments on commit ac6f489

Please sign in to comment.