Post

Replies

Boosts

Views

Activity

How to test WKWebview
Now I'm writing the unit tests. There is a problem to test the WKWebView. Do you know how to execute the navigationDelegate methods. I have tried like this, but it crashed. Could you please help me? Thanks in advance. let wkNavigation = WKNavigation() let error = NSError() vc.wkWebView?.navigationDelegate?.webView!(vc.wkWebView!, didFail: wkNavigation, withError: error)
6
0
4.9k
Oct ’17