Skip to content

Instantly share code, notes, and snippets.

@quangDecember
Created January 7, 2019 09:46
Show Gist options
  • Save quangDecember/0f14383409632450a6404bd93747168d to your computer and use it in GitHub Desktop.
Save quangDecember/0f14383409632450a6404bd93747168d to your computer and use it in GitHub Desktop.
UI Testing with Lunch framework
class GoogleTestViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
let webView = WKWebView.init(frame: self.view.frame)
webView.load(URLRequest.init(url: URL.init(string: "https://www.google.com")! ))
self.view.addSubview(webView)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment