Tell WebView , please, how to track where on the page the user clicked, and what data he entered and in which <input> ?

Now more specifically. There is a page on which several forms and stsylok. When entering data into input and clicking on submit , before submitting the form, you need to remember the id inputs and the values ​​that were entered, for links, just to track the click. This is for the robot to learn, and then repeat the user's actions.

If you knew exactly what <input> is on the page, you could hang ChangeListener<String> handlers through the DOM model, but the trouble is that each time the <input> changes, with new id and names. Likewise, and links.

So the question arises: how to catch the components on which the user clicks, before sending the form to the server? And how to track a click on a link if its id is not known?

Thank you in advance for the answers.

    1 answer 1

    You can use the position of the mouse on the site. MouseInfo.getPointerInfo().getLocation(). And with each click of the user, enter the mouse parameters in the database. And then from there to make a simulation of movement and clicks). And you cannot write an ID, as you don’t know them. The data of the forms that are entered can be tracked by pressing the keys.