IshTex Posted January 10, 2021 Share Posted January 10, 2021 Hi. I'm running a website that I'm accessing via a Proxy. I've got my Chrome Instance using the proxy and I'm now looking at ways of getting around the Chrome 'Sign In' popup which requires the entering of the proxy username and password. I have seen people using AutoIT to generate the .exe which does the entering of the username and password within the Chrome modal. This would partially work for my solution. Code below: WinWaitActive("Sign In") Send("username") Send ("{TAB}") Send("password") Send("{ENTER}") The above code would work if I had a static username and password. However, I have a different username and password for each of my proxy, so I need the username and password as a dynamic input. Is there any way of using AutoIT but dynamically populating the username and password so it changes on each proxy browser? Or does anyone know of another way of authenticating proxies on Chrome using Selenium? Link to comment Share on other sites More sharing options...
IshTex Posted January 10, 2021 Author Share Posted January 10, 2021 I forgot to add to the above. I am using .Net, C# and Selenium to run my browser Link to comment Share on other sites More sharing options...
Nine Posted January 10, 2021 Share Posted January 10, 2021 You could create a .ini file with all your proxies along with their specific username and password. One way is to show a GUI pop-up that will ask you to select the proxy, then it will send the appropriate UN/PW. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
IshTex Posted January 10, 2021 Author Share Posted January 10, 2021 @Nine Is there any documentation anywhere for this to be done? Ideally later on down the line I want to make my solution into a .exe so would this solution still work? 2 minutes ago, Nine said: You could create a .ini file with all your proxies along with their specific username and password. One way is to show a GUI pop-up that will ask you to select the proxy, then it will send the appropriate UN/PW. Link to comment Share on other sites More sharing options...
Nine Posted January 10, 2021 Share Posted January 10, 2021 1 minute ago, IshTex said: Is there any documentation anywhere for this to be done? Open AutoIt help file, everything is in there. Look under the section talking about INI file and GUI with a drop-down. 3 minutes ago, IshTex said: I want to make my solution into a .exe so would this solution still work? Yes no problem “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now