0

i have tried to inspect through HTML code from Webview to get the password field and username field ids to execute with javascript.

try{
        Document document = Jsoup.connect(url).get();
        htmlcode=document.body().toString();
     }catch (IOException e){
        e.printStackTrace();
     }
     return "Executed";
Black mamba
  • 462
  • 4
  • 15

1 Answers1

0

Try this ..

We just need to add this.webView.getSettings().setDomStorageEnabled(true); along with this.webView.getSettings().setJavaScriptEnabled(true);.

Now we can delete the cookies codes, and save data.

Note: If it doesn't work, try not to delete the cookies code.

chand mohd
  • 2,363
  • 1
  • 14
  • 27
  • thank you but how to make webview autofill after logout from particular websites ? like other browsers – Black mamba Aug 07 '20 at 05:49
  • check this out https://stackoverflow.com/questions/24977781/fill-form-programmatically-in-android-webview-javascript/24977839#24977839 – chand mohd Aug 07 '20 at 06:01