             self.resolve()
             let _ = self.query
         }
-        self.waitUntilSnapshotIsStable()
         
         return accessibilityInfoForElement(self.lastSnapshot)
     }

        return value
    }
    
    func waitUntilSnapshotIsStable() ->  Bool {    
        let sem = DispatchSemaphore(value:0)
        let sharedClient=XCAXClient_iOS()
        sharedClient?.notifyWhenNoAnimationsAreActive(forApplication: self.application,reply:{sem.signal()})
        let timeout = DispatchTime.now()+DispatchTimeInterval.seconds(2)
        let result:Bool = DispatchTimeoutResult.success == sem.wait(timeout: timeout)
        if (!result) {
            print("There are still some active animations in progress after 2 seconds timeout. Visibility detection may cause unexpected delays.", 2)
        }
        
        return result
    }
    
    func wdLabel() -> String {
        if self.elementType == XCUIElementType.textField {
            return self.label

        if self.lastSnapshot == nil {
            self.resolve()
        }
        
        return dictionaryForElement(self.lastSnapshot)
    }
