I’m creating a web browser using CEFSharp. It seem that the only method available to access the HTML elements of a web page is via JavaScript. I’d like my browser to be able to autofill login forms, so I created a script that looks for any form tags on the page, retrieves the name and ID of any input tags, adds them to an array, and then sends the array to the browser program. The program then works out what type of form is on the page, and can then autofill the values, e.g. document.getElementById(‘user’).value=’username’;
This works fine for the most part, but there are login forms, such as the one on Twitter, that don’t enable the login button unless the user enters the login details manually. I’ve tried simulating a mouse click, and I’ve also tried simulating key presses, but neither seems to work. Any ideas?