Category : xamarin

How to make a connection with "onClick" event of instagram login button through " webview" in JavaScript? like this question : my code: WebView _webview; WebSetting(_webview); _webview.SetWebViewClient(new MyWebViewClient()); _webview.LoadUrl("https://www.instagram.com/accounts/login"); MyWebViewClient() public override void OnPageFinished(WebView view, string url) { base.OnPageFinished(view, url); view.LoadUrl("javascript:document.getElementsByClassName(‘Igw0E’)[4].onclick = function(){alert(‘my message’);}"); } Thanks for your help Source: Ask Javascript..

Read more

I am aware that JavaScript in a WebView can be debugged with Chrome’s debugger tools as outlined here: https://www.c-sharpcorner.com/article/xamarin-forms-debugging-webview/. That does sometimes work for me (although it’s intermittent – often the DevTools window that comes up when I click inspect is blank, and other times it shows my js and screen, but breakpoints don’t seem ..

Read more