mozilla/geckoview

How to get value returned from Javascript

Opened this issue · 0 comments

Using Geckoview Android, can someone help me with getting value from javascript. Using loadUri to inject javascipt --> session.loadUri("javascript:var Name=document.querySelector('[id=\"name\"]').innerText;"); The javascript code is executed successfully. Now how can i return the Name value got from javascript to a String variable in java.