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

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -