@Raz very short code I use to login to a particular site
import ui from wkwebview import WKWebView class MyWKWebViewDelegate: def webview_should_start_load(self, webview, url, nav_type): print('Will start loading', url) return True @ui.in_background def webview_did_finish_load(self, webview): title = str(webview.eval_js('document.title')) print('Finished loading ' + title) if 'login' in title.lower(): #print(w.eval_js('document.documentElement.innerHTML')) webview.eval_js('document.getElementsByName("Callsign")[0].value="myuser";') webview.eval_js('document.getElementsByName("EnteredPassword")[0].value="mypassword";') webview.eval_js('document.getElementById("CFForm_1").submit();') web = WKWebView(delegate=MyWKWebViewDelegate()) web.frame = (0,0,400,400) web.present('sheet') web.load_url('https://www.eqsl.cc/QSLCard/login.cfm')Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.