Skip to content

Commit

Permalink
Update XCUIElement+Tap.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
eonist committed Sep 21, 2023
1 parent 64d0bc7 commit 7e7febd
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,8 @@ extension XCUIElement {
@discardableResult public func tap(waitForExistence secs: Double, waitAfter sleepSecs: Double) -> XCUIElement? {
// Wait for the element to exist within the specified timeout
guard self.waitForExistence(timeout: secs) else { return nil }

// Tap the element on iOS/macOS
self.tap()

// Wait for the specified amount of time after the tap
return self.wait(after: sleepSecs)
}
Expand Down

0 comments on commit 7e7febd

Please sign in to comment.