Skip to content

Commit

Permalink
WIP: supporting SecureTextField on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekpacia committed Oct 13, 2022
1 parent be5e199 commit cbbc81e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions AutomatorServer/ios/AutomatorServerUITests/Automator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,10 @@ class Automator {
let app = try self.getApp(withBundleId: bundleId)
let element = app.textFields[text]

let exists = element.waitForExistence(timeout: self.timeout)
guard exists else {
guard let element = self.waitForAnyElement(
elements: [app.textFields[text], app.secureTextFields[text]],
timeout: self.timeout
) else {
throw PatrolError.viewNotExists("text field with text \(format: text) in app \(format: bundleId)")
}

Expand Down

0 comments on commit cbbc81e

Please sign in to comment.