Answers for "Auto Login from webview slow"

0

Auto Login from webview slow

InAppWebView(
          key: webViewKey,
          initialUrlRequest: URLRequest(url: Uri.parse(url)),
          initialOptions: options,
          onLoadStop: (controller, url) {
            controller.evaluateJavascript(
                  source: 
                  """
                    var email = document.getElementById("dwfrm_login_username");
                    var password = document.getElementById("dwfrm_login_password");
                    email.value = "username";
                    password.value = "password";
                    document.getElementsByName('dwfrm_login_login')[0].click();            
                  """
            );
          },
        ),),
Posted by: Guest on August-13-2021

Browse Popular Code Answers by Language