my android app automatically load a specific form from a web page and at the moment the submit button open a confirm popup. I want to automatically "click ok" in the popup to continue to the next page from the form without the human interaction necessity.
I wanted to try using javascript to force the confirm() function
to return true
, but the function is hidden in the submitForm()
function code.
Silly solution, trigger a click at a specified coordinate:
See https://stackoverflow.com/a/3277417/14406944 for reference.
-
This solution just work if the element I want to click is an html element from the page. But I want to click in a confim popup (like an alert popup). – Ismael Woltmann Oct 26 '20 at 14:09
alert()
orconfirm()
). – Ismael Woltmann Oct 26 '20 at 17:48