Put text inside a textarea in a webview

爱⌒轻易说出口 提交于 2019-12-12 02:44:17

问题


I need to put a value in a textarea of a website in a webview.

So I tried several things :

  • get the textarea with javascript : something like webview1.loadUrl("javascript:document.getElementsByTagName('table')[0].children[0] .... But the desired textarea is in a iframe, and I don't know how to access it.
  • Put a setOnTouchListener on my webview and paste from clipboard the desired value, but I don't know how to simulate a CTRL+V
  • Parse the website with Jsoup, but I cannot get the html after authenticaton (Jsoup authentication failed)

Any other ideas ?

来源:https://stackoverflow.com/questions/25411358/put-text-inside-a-textarea-in-a-webview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!