[英]How to click a button or checkbox on a HTML page and reload the page AUTOMATICALLY
I would like to make a Android function that would analyze the web content and automatically click the submit button and reload the page for updating. 我想制作一个可以分析Web内容并自动单击Submit按钮并重新加载页面以进行更新的Android函数。 I have already get the on the webview and find the line of button.
我已经在webview上找到了并找到按钮行。 BUT I do not know what to do next.
但是我不知道下一步该怎么做。 Anyone got ideas?
有人知道吗?
Try this by adding button
with js
to your html
file: 通过将带有
js
button
添加到您的html
文件中来尝试此操作:
<button onclick="myFunction()">Reload page</button>
<script>
function myFunction() {
location.reload();
}
</script>
Is it useful for you? 对您有用吗?
You can use this to check checkbox, input value,... whatever with your webview? 您可以使用它来检查复选框,输入值,...与您的webview一样吗?
http://executeautomation.com/blog/hybridapplication-robotium/ http://executeautomation.com/blog/hybridapplication-robotium/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.