Skip to content

Commit

Permalink
rename element extension
Browse files Browse the repository at this point in the history
  • Loading branch information
shamanec committed Aug 10, 2023
1 parent 16bbd96 commit f5bcdbe
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ extension XCUIElement {
/// Get the text from the value property of an element
var textFromValue: String? { value as? String }

/// Performs tap on non-hittable element by coordinates
func tapNonHittable() {
/// Performs tap on element by its coordinates.
/// Suitable for tapping on non-hittable elements
func tapByCoordinates() {
let coordinate = self.coordinate(withNormalizedOffset: CGVector(dx: 0.5, dy: 0.5))
coordinate.tap()
}
Expand Down

0 comments on commit f5bcdbe

Please sign in to comment.