標題: [android] 如果用httpUrlConnection,有冇方法可以simulate mouse click on the page? [打印本頁]
作者: luckiejacky 時間: 2018-2-21 22:28 標題: [android] 如果用httpUrlConnection,有冇方法可以simulate mouse click on the page?
如果用httpUrlConnection,有冇方法可以simulate mouse click on the page?
然後再拿到第二頁?
THX
作者: KinChungE 時間: 2018-2-21 23:36
冇可能
httpUrlConnection根本純綷raw data download落去
乜野係HTML/JS佢都唔會理, 更加唔會知咩叫click event
作者: s.friday1004 時間: 2018-2-22 01:39
Instead of trying to automate clicking the JavaScript button, try monitoring what request is sent and then replicate this in your app. There are various firefox extensions that will help you do this, such as TamperData, Firebug, and LiveHttp.
reference: https://stackoverflow.com/questi ... ick-on-this-webpage
