As there is (according to my research) no way to catch user input with selenium, I am trying to use a JavaScript event listener. But when I add the event listener by executing the JavaScript code, the function is automatically triggered without me (as the user) doing anything. Furthermore, there is no way to trigger the function again. Does anyone