How to implement autofill of username and password lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- Ten_Mile_Hike · 2024-11-13 15:24 Code: Text  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i Hello All, NOTE: I don't care about security... this is as an academic exercise only. After opening a URL in my browser (Firefox ) using either "Shellexecute" or  "OpenURL" is it possible to autofill the Username and Password fields? TIADBM ---------------------------------------------------------------------- Thaddy · 2024-11-13 16:01 Yes. If you have access to a password vault. Otherwise your browser could not do that. Implementation depends. But a better solution is to use certificates.( can be self signed) which is the academically optimal solution. I use the latter solution for - some - of my own websites. I present a dialog if you do not have a certificate but If you even try a password you get dropped and logged....if you do not have the proper client certificate. /dev/null and more. ---------------------------------------------------------------------- Ten_Mile_Hike · 2024-11-13 23:55 Thaddy, Hello. Thank you for responding. To be clear the scenario that I had in mind was that I have my personal UN/PW that had been stored locally and was accessible by my application already decrypted and the Google.com login page is open in my browser and waiting for the UN/PW fields to be typed in. Can I somehow, in that scenario, fill in the UN/PW fields via Pascal code without certificates? I know that I could probably just copy them to the clipboard via code and past manually, but I was imagining autofilling the fields similar to how "Lastpass" or "Protonpass" does it. Thanks ---------------------------------------------------------------------- Fibonacci · 2024-11-14 05:37 Doable. Search forum, keywords: webdriver, chromedriver ---------------------------------------------------------------------- egsuh · 2024-11-15 02:49 Isn’t this an issue of browser itself? I think you can find a file that browser stores id/pw list, and it would be editable. ---------------------------------------------------------------------- Zvoni · 2024-11-15 07:12 ?!?!?!? "https://user:password@domain.com" ---------------------------------------------------------------------- Phoenix · 2024-11-15 10:33 Quote from: Fibonacci on November 14, 2024, 06:37:40 amDoable. Search forum, keywords: webdriver, chromedriver in fact there is something interesting about it in the forum even if I don't know how it achieves the goal you can see the link: https://forum.lazarus.freepascal.org/index.php/topic,50082.0.html