Skip to content

Commit

Permalink
Use 3 taps instead of 2 when selecting text in iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
eonist committed Apr 16, 2024
1 parent 85c4242 commit 00b1304
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ extension XCUIElement {
// Double-tap the element on iOS, triple-tap on macOS to select all text before deleting it
#if os(iOS)
self.tap(
withNumberOfTaps: 2, // The number of taps to perform
withNumberOfTaps: 3, // The number of taps to perform (was 2, but fails at selecting all text)
numberOfTouches: 1 // The number of fingers to use for the tap
)
#elseif os(macOS)
Expand Down

0 comments on commit 00b1304

Please sign in to comment.