Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <a href="#" title="logout" class="exit">logout</a>
- func logOut() {
- webView.evaluateJavaScript("document.querySelector('#header > div > a.exit').click()", completionHandler: { (result, error) in
- if error != nil {
- print("Logout error - (error?.localizedDescription)")
- } else {
- print("Logout ok! (result)")
- }
- })
- self.webView.reloadFromOrigin()
- }
Add Comment
Please, Sign In to add comment