         var found = false
 
         let escaped = text.stringByReplacingOccurrencesOfString("\"", withString: "\\\"")
-        webView.evaluateJavaScript("KIFHelper.hasElementWithAccessibilityLabel(\"\(escaped)\")") { success, _ in
-            found = success as! Bool
-            stepResult = KIFTestStepResult.Success
-        }
-
+        let result = webView.stringByEvaluatingJavaScriptFromString("KIFHelper.hasElementWithAccessibilityLabel(\"\(escaped)\")");
+//      { success, _ in
+//            found = success as! Bool
+//            stepResult = KIFTestStepResult.Success
+//        }
+        found = result != nil
+        stepResult = KIFTestStepResult.Success
         runBlock { _ in return stepResult }
 
         return found
     }
 
-    private func getWebViewWithKIFHelper() -> WKWebView {
-        let webView = waitForViewWithAccessibilityLabel("Web content") as! WKWebView
+    private func getWebViewWithKIFHelper() -> UIWebView {
+        let webView = waitForViewWithAccessibilityLabel("Web content") as! UIWebView
 
         // Wait for the web view to stop loading.
         runBlock { _ in

        var stepResult = KIFTestStepResult.Wait

        let escaped = text.stringByReplacingOccurrencesOfString("\"", withString: "\\\"")
        webView.evaluateJavaScript("KIFHelper.tapElementWithAccessibilityLabel(\"\(escaped)\")") { success, _ in
            stepResult = (success as! Bool) ? KIFTestStepResult.Success : KIFTestStepResult.Failure
        }

        runBlock { error in
            if stepResult == KIFTestStepResult.Failure {


        var stepResult = KIFTestStepResult.Wait

        let _result = webView.stringByEvaluatingJavaScriptFromString("typeof KIFHelper")
        if let result = _result where result == "undefined" {
            let bundle = NSBundle(forClass: NavigationTests.self)
            let path = bundle.pathForResource("KIFHelper", ofType: "js")!
            let source = try! NSString(contentsOfFile: path, encoding: NSUTF8StringEncoding)
            webView.stringByEvaluatingJavaScriptFromString(source as String)
        }
        stepResult = KIFTestStepResult.Success


        runBlock { _ in return stepResult }

