     }
     
     func run(string:String, completion: ((String) -> Void)) {
-        self.webview.evaluateJavaScript(string, completionHandler: { (result : AnyObject!, error) in
+        self.webview.evaluateJavaScript(string, completionHandler: { result, error in
             if (error != nil) {
                 println("there was an error running javascript:")
                 println(string)

    }

    func fillIn(field:String, with:String, completion: ((String) -> Void)) {
        println("fill in value")
        run("document.getElementById('\(field)').value = \"\(with)\";") { (result) in
            completion(result)
        }
    }

    func click(field:String, completion: ((String) -> Void)) {
        println("click")
        run("document.getElementById('\(field)').click();") { (result) in
            completion(result)
            

    }
    
    func webView(webView: WKWebView, didCommitNavigation navigation: WKNavigation!) {
        println("didCommitNavigation")
        delegate?.webViewDriverProgress(true)
    }
    
    func webView(webView: WKWebView, didFinishNavigation navigation: WKNavigation!) {
        println("didFinishNavigation")
        var url = webView.URL!.absoluteString! as NSString
        delegate?.webViewDriverProgress(false)
        pageLoaded(url as! String)
