ios - expectationForPredicate doesnt work as expected -


using xcuielement+extension:

private func waitforexpectations() {      mysoberroommateuitests.shared?.expectation(for: nspredicate(format: "exists == true"), evaluatedwith: self, handler: nil)      mysoberroommateuitests.shared?.waitforexpectations(timeout: 10) { error in          if error != nil {             mysoberroommateuitests.shared?.recordfailure(withdescription: "failed find \(self) 5 seconds", infile: #file, atline: #line, expected: true)         }     } }  class mysoberroommateuitests: xctestcase {      static var shared: xctestcase?      ...//my uitests } 

and doesn't work. element exists, prints "failed find..." wrong?


Comments

Popular posts from this blog

qt - QML MouseArea onWheel event not working properly when inside QML Scrollview -

java - is not an enclosing class / new Intent Cannot Resolve Constructor -

python - Error importing VideoFileClip from moviepy : AttributeError: 'PermissionError' object has no attribute 'message' -