I'm building a Java application that interacts with a public website (I do not have access to the server-side).
The website's search function is a javascript overlay that dynamically searches on the fly as the user types their search criteria in (much like google when you type the first few characters) using aKeyUp
listener.
I know how to use Java to post when it comes to submitting text to a form. But how can I send text to the text-box mentioned above to simulate actually typing the text on the webpage? Adding the value=
attribute doesn't work. And I presume sending a POST request wouldn't work either.
The source code is simply
<input type="text" placeholder="Find a user by username or interest" class="opensans" />
The code doesn't change even after I've typed something in the box.
I've identified that this is using a javascript KeyUp Listener.
In brief, using Java how can I lay down text to an HTML textbox that responds to a users keyup action?