Skip to content

Instantly share code, notes, and snippets.

@ayoub-9
Last active May 7, 2019 22:25
Show Gist options
  • Save ayoub-9/e17fee5cdeb5fc47abdba5de019efaf7 to your computer and use it in GitHub Desktop.
Save ayoub-9/e17fee5cdeb5fc47abdba5de019efaf7 to your computer and use it in GitHub Desktop.
LOGIN
webView.evaluateJavaScript("document.getElementsByClassName('_0mzm- sqdOP L3NKy ')[0].click();")
set value to any website
webView.evaluateJavaScript("document.getElementById('Passwd').value='\(passwordTF.text!)'", completionHandler: nil)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment